Time Zones And Php 4

liunx

Guest
Hello everyone,<br />Is there any way of altering the PHP or MYSQL time zone to reflect GMT +10?<br /><br />I notice that my server is running PHP version 4.4.4 which means I am unable to use date_default_timezone_set which requires version 5.<br />I am attempting to timestamp an sql entry with my local time rather than that of the server.<br /><br />Any suggestions?<!--content-->
Nevermind just found my own answer.<br /><br />For anyone else having this problem the putenv function will assist as a workaround.<br />Example, putenv ('TZ=Australia/Melbourne');<br />Not sure if this function is completely compatible with the list of supported time zones listed on the php website, <a href="http://au3.php.net/manual/en/timezones.php" target="_blank">http://au3.php.net/manual/en/timezones.php</a><!--content-->
Welcome to the forum Bobby <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br />glad you found the answer.<!--content-->
Thanks for the welcome Don!<!--content-->
Welcome to the forum, Bobby. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
Welcome to the forums Bobby <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><!--content-->
 
Back
Top