Php – Does PHP handle new timezones such as New Zealand’s UTC + 14:00


I was going through Wikipedia and found out that New Zealand skipped a day (December 30 2011) and so did Somoa which pushed them into a timezone ahead. So, a part of New Zealand is now UTC + 14:00. Samoa which used to be in UTC + 11 is now +12. Does PHP adjust to support this change.

Best Solution

The accepted answer is wrong and it may cause failure in your application in the future.

The PHP documentation clearly recommends not to use "NZ" as the timezone, because it is there

for backward compatibility only

Please use Pacific/Auckland instead. Note that New Zeland has many territories with different timezones (Tokelau, Cook Islands, etc)