Bug #54671 [Opn->Wfx]: DateTimeZone::getTransitions returns empty array for certain timezones

From: Date: Thu, 12 Jan 2017 20:04:37 +0000
Subject: Bug #54671 [Opn->Wfx]: DateTimeZone::getTransitions returns empty array for certain timezones
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206577@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54671&edit=1 ID: 54671 Updated by: heiglandreas@php.net Reported by: buskamuza at gmail dot com Summary: DateTimeZone::getTransitions returns empty array for certain timezones -Status: Open +Status: Wont fix Type: Bug Package: Date/time related PHP Version: 5.2.17 Block user comment: N Private report: N New Comment: This targets an unsupported version of PHP. I'm therefore closing this. Previous Comments: ------------------------------------------------------------------------ [2011-05-05 23:11:14] buskamuza at gmail dot com Description: ------------ DateTimeZone::getTransitions() returns empty array for following timezones: Etc/GMT+12 Etc/GMT-3 Atlantic/South_Georgia Etc/GMT+3 Etc/GMT+5 Pacific/Port_Moresby Fixed in 5.3, but not for 5.2 Test script: --------------- foreach ($timezones as $timezone) { $dtz = new DateTimeZone($timezone); $transitions = $dtz->getTransitions(); if (count($transitions) == 0) { echo $timezone . ": " . count($transitions)."<br>\n"; } } Expected result: ---------------- Empty page (any timezone has transitions). Actual result: -------------- Etc/GMT+12: 0 Etc/GMT-3: 0 Atlantic/South_Georgia: 0 Etc/GMT+3: 0 Etc/GMT+5: 0 Pacific/Port_Moresby: 0 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=54671&edit=1

« previous php.bugs (#206577) next »