|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-08-13 09:22 UTC] andy at calamedia dot de
Description:
------------
Creation of DateTimeZone for Pacific/Auckland causes unknown or bad timezone error
Test script:
---------------
$tz = new DateTimeZone('Pacific/Auckland');
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 09:00:01 2025 UTC |
The following timezones also cause errors in 2015.6: Pacific/Apia Pacific/Bougainville Pacific/Chatham Script to test: foreach (DateTimeZone::listIdentifiers() as $zone) { try { $obj = new DateTimeZone($zone); echo $zone . " worked\n"; } catch (Exception $ex) { echo $zone . ': ' . $ex->getMessage() . "\n"; } }