|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-05-11 00:01 UTC] felipe@php.net
-Summary: DateTimeZone::getTransitions returns empty array fore
certain timezones
+Summary: DateTimeZone::getTransitions returns empty array for
certain timezones
[2017-01-12 20:04 UTC] heiglandreas@php.net
-Status: Open
+Status: Wont fix
[2017-01-12 20:04 UTC] heiglandreas@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
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