Page 1 of 1

Timezones in PHP4

Posted: Mon Jan 12, 2009 4:08 pm
by Cirdan
So what is the best way to handle timezones in PHP4. Trust me, I tried to get the admin to switch hosts to get PHP5 but no avail.

I saw this article. But I can't really understand their code. Also, is there a different way instead of brute forcing it? I would like to do it similar to how PHPBB does it.

Working URLs for the above article:
timezones_php4.php
time.php

Re: Timezones in PHP4

Posted: Mon Jan 12, 2009 5:31 pm
by it2051229
you can set also the time zone via .htaccess (just a suggestion)

Re: Timezones in PHP4

Posted: Tue Jan 13, 2009 3:31 pm
by Cirdan
Since there seems to be no feasible way to do this, I will probably just have the users enter the current time, and it will calculate the offset automatically. They will just have to change it when it is DST.