Bug #66845 [Opn->Nab]: timezone_open

From: Date: Fri, 07 Mar 2014 14:39:40 +0000
Subject: Bug #66845 [Opn->Nab]: timezone_open
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184605@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66845&edit=1 ID: 66845 Updated by: derick@php.net Reported by: thekid@php.net Summary: timezone_open -Status: Open +Status: Not a bug Type: Bug Package: Date/time related Operating System: Windows 7 PHP Version: 5.6.0alpha3 Block user comment: N Private report: N New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Yes, this is a bug fix. If you want to use Europe/Berlin, you need to use Europe/Berlin. PHP 5.6 adds supports for using "type 1" (+03:00) and "type 2" (CEST/CET) as timezone object, where previously PHP wanted to be nice and allow the use of the deprecated abbreviations to be "upgraded" to Timezone Identifiers. Previous Comments: ------------------------------------------------------------------------ [2014-03-07 13:33:10] thekid@php.net Description: ------------ timezone_open() behaviour has changed between PHP 5.5 and PHP 5.6 Test script: --------------- $ php -ddate.timezone=Europe/Berlin -r 'var_dump(timezone_open("CEST"));' Expected result: ---------------- object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/Berlin" } Actual result: -------------- object(DateTimeZone)#1 (2) { ["timezone_type"]=> int(2) ["timezone"]=> string(4) "CEST" } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66845&edit=1

« previous php.bugs (#184605) next »