chk125 Posted December 2, 2009 Share Posted December 2, 2009 I heard PHP can override server time zone by: <? echo "Original Time: ". date("h:i:s")."\n"; putenv("TZ=US/Eastern"); echo "New Time: ". date("h:i:s")."\n"; ?> I heard full list of time zone can be found: http://www.theprojects.org/dev/zone.txt But www.theprojects.org seems "unreachable" for a while. Any alternative website I can found the full list of time zone for PHP? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/183694-php-override-server-time-zone/ Share on other sites More sharing options...
trq Posted December 2, 2009 Share Posted December 2, 2009 date_default_timezone_set is a better method for setting the timezone. And here is the list of timezones. Quote Link to comment https://forums.phpfreaks.com/topic/183694-php-override-server-time-zone/#findComment-969560 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.