How do I set the Timezone to New Zealand?


(Douglas (@finnatic at @waikato)) #1

We're not in Sydney… so I'm trying to change what I assume is the default timezone of 'Australia/Sydney' - I've tried 'New Zealand' which yielded

[quote]Notice: date_default_timezone_set() [function.date-default-timezone-set]: Timezone ID 'New Zealand' is invalid in /home/websites/mysource_matrix/core/include/init.inc on line 69[/quote]



and MySource let me save the invalid Timezone ID, rendering our access to the CMS via the web … well, completely borked. That's now fixed, but where do I find a list of valid timezones that would allow us to set the system to use a New Zealand Timezone?


(Greg Sherwood) #2

They are PHP timezones. You can find the list here: http://www.php.net/timezones


(Douglas (@finnatic at @waikato)) #3

Thanks Greg. Looks like we need 'NZ'.


Could I suggest that the system configuration page have a pointer to that list added so that others can avoid the situation we found ourselves in (or, even better, the system could validate the suggested change and bounce invalid timezones?) ?


(Dan Simmons) #4

There's currently a request in to get the installer script to automatically set the default to the server's system default, which would help. I'll prod Greg about that…


(Greg Sherwood) #5

You don't have to prod me. It's on my (very long) list. The number of new features we have on the boil for 3.22 and 3.24 versions is crazy :slight_smile:


(Nic Hubbard) #6

Oh boy, I can't wait to see what is coming!