Why is the Time Zones API not working?

HelenaG Grulichova asked on September 17, 2012 06:30

Why is the Time Zones API not working?

Correct Answer

HelenaG Grulichova answered on September 17, 2012 06:30

Please make sure Time Zones are enabled in the Site manager -> Settings ->  System -> Enable time zones.

You will need to enable them even for API code usage, as all methods contain a condition (TimeZonesEnabled()) that skips any datetime conversion logic if the time zones are not enabled (for the site or globally).

Also please make sure your Server time zone is correctly set.

-zc-
0 votesVote for this answer Unmark Correct answer

Recent Answers


Byron Bignell answered on February 25, 2014 05:49

Hi,

We have the timezones set to Eastern Canada (GMT -5) but the server reports as GMT 0, in effect any scheduled tasks we run are running off the wrong timezone as a start which is a problem.

We're running the site on Windows Azure as a website (not a VM) and the web site is in the Eastern US / Canada timezone, but the CMS itself, now matter what timezone we set in "Site manager -> Settings -> System -> Enable time zones." always reports as 5 hours ahead of the actual time in the timezone and then shows the UTC offset as what ever it was set to; making it all rather useless for basing scheduled executions off of.

So, the question is, why is the timezone for server and web site not working correctly under 7.0.11 and is there is fix?

Thanks

B

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.