php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76394 SGT timezone missing
Submitted: 2018-05-30 11:42 UTC Modified: 2018-05-30 12:25 UTC
From: joerg dot klein at ifsam dot lu Assigned: cmb (profile)
Status: Not a bug Package: Date/time related
PHP Version: 7.1.18 OS: Windows Server 2008R2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: joerg dot klein at ifsam dot lu
New email:
PHP Version: OS:

 

 [2018-05-30 11:42 UTC] 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'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-05-30 12:07 UTC] 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 12:23 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2018-05-30 12:23 UTC] 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:25 UTC] nikic@php.net
@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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 20:01:31 2024 UTC