Bug #66984 [Opn->Csd]: DateTimeZone BC break related to offsets

From: Date: Sun, 30 Mar 2014 20:00:16 +0000
Subject: Bug #66984 [Opn->Csd]: DateTimeZone BC break related to offsets
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184967@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66984&edit=1 ID: 66984 User updated by: evert at rooftopsolutions dot nl Reported by: evert at rooftopsolutions dot nl Summary: DateTimeZone BC break related to offsets -Status: Open +Status: Closed Type: Bug Package: Date/time related Operating System: Any PHP Version: 5.5.10 Block user comment: N Private report: N New Comment: Please ignore this. I jumped to conclusions. This report is invalid. Previous Comments: ------------------------------------------------------------------------ [2014-03-30 19:51:28] evert at rooftopsolutions dot nl Description: ------------ DateTimeZone::getName() returns a different name for timezones that just have offsets. I like the new format better, but this could be considered a BC break. Test script: --------------- $tz = new DateTimeZone('Etc/GMT-4'); echo $tz->getName(); // Before PHP 5.5.10 // Etc/GMT-4 // After PHP 5.5.10 // -04:00 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66984&edit=1

« previous php.bugs (#184967) next »