Bobby Posted March 29, 2007 Posted March 29, 2007 Hello everyone, Is there any way of altering the PHP or MYSQL time zone to reflect GMT +10? 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. I am attempting to timestamp an sql entry with my local time rather than that of the server. Any suggestions? Quote
Bobby Posted March 29, 2007 Author Posted March 29, 2007 Nevermind just found my own answer. For anyone else having this problem the putenv function will assist as a workaround. Example, putenv ('TZ=Australia/Melbourne'); Not sure if this function is completely compatible with the list of supported time zones listed on the php website, http://au3.php.net/manual/en/timezones.php Quote
TCH-Don Posted March 29, 2007 Posted March 29, 2007 Welcome to the forum Bobby glad you found the answer. Quote
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.