Bug->Doc #73225 [Opn]: 'GMT-14' formatted as '+14' in 7.1.0RC3 only
| From: | bwoebi@php.net | Date: | Mon, 03 Oct 2016 11:29:58 +0000 |
| Subject: | Bug->Doc #73225 [Opn]: 'GMT-14' formatted as '+14' in 7.1.0RC3 only | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13980@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73225&edit=1
ID: 73225
Updated by: bwoebi@php.net
Reported by: sjon at hortensius dot net
Summary: 'GMT-14' formatted as '+14' in 7.1.0RC3 only
Status: Open
-Type: Bug
+Type: Documentation Problem
Package: Date/time related
PHP Version: 7.1.0RC3
Block user comment: N
Private report: N
New Comment:
As per a change in the official timezone database version 2016g
(http://mm.icann.org/pipermail/tz-announce/2016-September/000041.html) this is expected behavior.
See the linked announcement mail for a list of all changes.
Changing to documentation bug as docs need to be updated in order to reflect that change.
Previous Comments:
------------------------------------------------------------------------
[2016-10-02 10:23:01] sjon at hortensius dot net
Description:
------------
I found 7.1.0RC3 unexpectedly formats "Etc/GMT-14" as '+14', this goes against
the warning displayed on http://php.net/manual/en/timezones.others.php
See https://3v4l.org/3FOZp
Test script:
---------------
<?php
$time = new DateTime("2001-05-12 00:20:00", new DateTimeZone("Etc/GMT-14"));
echo $time->format("D, d M Y H:i:s T");
Expected result:
----------------
Sat, 12 May 2001 00:20:00 GMT-14
Actual result:
--------------
Sat, 12 May 2001 00:20:00 +14
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73225&edit=1