Bug #76394 [Opn->Nab]: SGT timezone missing
| From: | cmb@php.net | Date: | Wed, 30 May 2018 12:23:06 +0000 |
| Subject: | Bug #76394 [Opn->Nab]: SGT timezone missing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215436@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: cmb@php.net
Reported by: joerg dot klein at ifsam dot lu
Summary: SGT timezone missing
-Status: Open
+Status: Not a bug
Type: Bug
Package: Date/time related
Operating System: Windows Server 2008R2
PHP Version: 7.1.18
-Assigned To:
+Assigned To: cmb
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
Timezone abbreviations (except UTC) should not be used[1]; use the
proper Asia/Singapore instead.
[1] <http://php.net/manual/en/timezones.others.php>
Previous Comments:
------------------------------------------------------------------------
[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