Bug #65995 [Asn->Csd]: FET timezone is missing in DateTimeZone

From: Date: Tue, 20 Jan 2015 19:12:11 +0000
Subject: Bug #65995 [Asn->Csd]: FET timezone is missing in DateTimeZone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190079@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65995&edit=1 ID: 65995 Updated by: derick@php.net Reported by: szahariev at sevone dot com Summary: FET timezone is missing in DateTimeZone -Status: Assigned +Status: Closed Type: Bug Package: Date/time related PHP Version: 5.4.21 Assigned To: derick Block user comment: N Private report: N New Comment: This should be fixed with https://github.com/php/php-src/commit/b0159431e3363f6b15561c7dfa0cdb247c287223#diff-851fac022a0926b8a6dbe650a12e4f82R915 Previous Comments: ------------------------------------------------------------------------ [2013-10-29 14:22:18] szahariev at sevone dot com Description: ------------ PHP's DateTimeZone doesn't currently support the FET (Far Eastern European Time) timezone, which is a valid timezone since 2011 according to IANA: http://www.iana.org/time-zones/repository/releases/tzdata2013h.tar.gz The only two major cities in there are Europe/Kaliningrad and Europe/Minsk. Even if PHP refuses to support it, it shouldn't output FET, when format "T" is used for timezone Europe/Kaliningrad. Test script: --------------- <?php $dateTimeZone = new DateTimeZone('Europe/Kaliningrad'); $dateTime = new DateTime('now', $dateTimeZone); // will fail here, because FET timezone doesn't exist yet new DateTimeZone($dateTime->format("T")); Expected result: ---------------- No exception thrown from PHP. Actual result: -------------- PHP Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (FET)' in /home/sofit/Downloads/php-5.4.21/test.php:5 Stack trace: #0 /home/sofit/Downloads/php-5.4.21/test.php(5): DateTimeZone->__construct('FET') #1 {main} thrown in /home/sofit/Downloads/php-5.4.21/test.php on line 5 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65995&edit=1

« previous php.bugs (#190079) next »