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. 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. 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
Archived
This topic is now archived and is closed to further replies.