UK Globalization

Discussion in 'Site Programming, Development and Design' started by davidjonfuller, Jul 18, 2011.

  1. I have a problem with my uk based website. Football fixtures need to turn into results after the date and time set in the database.

    Because the Winhost servers are US based the timezomes are incorrect. I tried globally setting the time zone in the web.config file as

    <globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="en-GB" />

    But this doesn't seen to make any difference. Is there any way to achieve this?

    Thanks
     
    Last edited by a moderator: Oct 14, 2015
  2. FredC

    FredC Winhost Staff

  3. You should store dates in the UTC time zone in your database. Upon retrieving dates you should convert these UTC dates to the TimeZone you want. The Following Code creates a method that can convert From UTC TimeZone to W. Europe Standard Time.

     

Share This Page