Doc #73225 [Opn]: 'GMT-14' formatted as '+14' in 7.1.0RC3 only
| From: | cmb@php.net | Date: | Tue, 04 Oct 2016 16:00:43 +0000 |
| Subject: | 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-13987@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: cmb@php.net
Reported by: sjon at hortensius dot net
Summary: 'GMT-14' formatted as '+14' in 7.1.0RC3 only
Status: Open
Type: Documentation Problem
Package: Date/time related
PHP Version: 7.1.0RC3
Block user comment: N
Private report: N
New Comment:
I'm not sure that we should document *this* change. Actually, the
first warning on the page already states:
> Please do not use any of the timezones listed here (besides
> UTC), they only exist for backward compatible reasons, and may
> expose erroneous behavior.
Previous Comments:
------------------------------------------------------------------------
[2016-10-03 11:29:54] bwoebi@php.net
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.
------------------------------------------------------------------------
[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