Bug #76394 [Nab]: SGT timezone missing

From: Date: Wed, 30 May 2018 12:25:59 +0000
Subject: Bug #76394 [Nab]: SGT timezone missing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215437@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76394&edit=1 ID: 76394 Updated by: nikic@php.net Reported by: joerg dot klein at ifsam dot lu Summary: SGT timezone missing Status: Not a bug Type: Bug Package: Date/time related Operating System: Windows Server 2008R2 PHP Version: 7.1.18 Assigned To: cmb Block user comment: N Private report: N New Comment: @gooh: Based on that discussion this not a bug, but an intentional normative change that will not be reserved. Current tzdata does not reintroduce SGT. Previous Comments: ------------------------------------------------------------------------ [2018-05-30 12:23:04] cmb@php.net 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 Timezone abbreviations (except UTC) should not be used[1]; use the proper Asia/Singapore instead. [1] <http://php.net/manual/en/timezones.others.php> ------------------------------------------------------------------------ [2018-05-30 12:07:21] gooh@php.net This is a bug in tzdb. Please refer to http://tz.iana.narkive.com/NDLAJ1xs/tz-sgt-abbreviation-is-missing-from-the-iana-tz-database for details. Updating tzdb in core should fix this. ------------------------------------------------------------------------ [2018-05-30 11:42:15] joerg dot klein at ifsam dot lu Description: ------------ In PHP 7.1 (7.1.18) the timezone SGT is missing in the PHP timezone database. In version 7.0.22 it could be used. Other timezone like gmt, utc, cet,... are fine. Could you please add it again? Test script: --------------- $datetime = DateTime::createFromFormat ('H:i T' , '09:30 SGT'); var_dump(DateTime::getLastErrors()); Expected result: ---------------- no error Actual result: -------------- Error: 'The timezone could not be found in the database' ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76394&edit=1

« previous php.bugs (#215437) next »