• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Default Time Zone Not Picking Up

#1
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
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.