Page 1 of 1

Timezones NOT taken into Consideration...

Posted: Mon Sep 13, 2010 2:31 pm
by rklockner
I am working with an enormous existing code base that was never developed to include alternate timezones.

The software is currently in use nationwide (and some users out of the country), and we are currently stating "All Times are EST" everywhere in the software. The more people that are signing up, the bigger the problem is getting.

I know I can go everywhere in the software that lists a time and adjust the time before it is output, but is there a way that will automatically adjust based on the users current timezone?

I tried to do some searches on this, but I couldn't word it in a way that returned valuable results.

Any help will be appreciated (even if the advice is "Suck it up and alter each occurence manually").

Thanks,

Ryan

Re: Timezones NOT taken into Consideration...

Posted: Mon Sep 13, 2010 2:39 pm
by MichaelR
Only if you switch the time/date to be output through JavaScript.

Re: Timezones NOT taken into Consideration...

Posted: Mon Sep 13, 2010 2:57 pm
by AbraCadaver
I would have to see full examples of how you are retrieving times and displaying them, but you need to get the user's timezone either by them selecting it or by using javascript. Then just use date_default_timezone_set() in a global header or config file.