Welcome Guest, Not a member yet? Register   Sign In
[Solved] Default Time Zone Not Picking Up
#1

(This post was last modified: 09-13-2015, 11:05 PM by wolfgang1983.)

I am trying to set my default time zone to New Zealand/Wellingtion but does not pick up New Zealand/Wellingtion

Error date_default_timezone_set(): Timezone ID 'New Zealand/Wellington' is invalid

What would be correct?


date_default_timezone_set('New Zealand/Wellington');
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply
#2

(This post was last modified: 09-13-2015, 10:33 PM by JayAdra.)

Try using 'Pacific/Auckland' as the timezone:
http://php.net/manual/en/timezones.php

Or if there is another region which is closer/more accurate, use that. But I couldn't see anything at a glance.
Reply
#3

(09-13-2015, 10:31 PM)JayAdra Wrote: Try using 'Pacific/Auckland' as the timezone:
http://php.net/manual/en/timezones.php

Or if there is another region which is closer/more accurate, use that. But I couldn't see anything at a glance.

Thank you for the link working now.
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB