|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76748 date format timezone abbreviations and changes not well documented
Submitted: 2018-08-15 15:49 UTC Modified: 2018-08-15 16:05 UTC
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: georgekazdev at gmail dot com Assigned:
Status: Open Package: Date/time related
PHP Version: 7.1.20 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: georgekazdev at gmail dot com
New email:
PHP Version: OS:


 [2018-08-15 15:49 UTC] georgekazdev at gmail dot com
From versions 7.0.17 to 7.0.18 and from 7.1.3 to 7.1.4 many timezone abbreviations were removed as discussed here:

But the changelog ( does not mention this and neither does

Before the change, the expected return for the test script below was:

but after the change it's

To save time tracing this problem, please consider updating documentation to mention the changes, either to say that the 'T' formatter will return the date diff if there is no abbreviation, or to mention it in the change log. It would help in knowing that it's not a bug. A list of valid abbreviations would also be useful. 


Test script:

$date = new DateTime('Feb 13, 2009 11:31:30 PM', new DateTimeZone('Indian/Maldives'));
echo $date->format('T').PHP_EOL;

$date = date_create('Feb 13, 2009 11:31:30 PM', timezone_open('Indian/Maldives'));
echo date_format($date, 'T').PHP_EOL;

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-15 16:00 UTC]
-Package: Documentation problem +Package: Date/time related
 [2018-08-15 16:05 UTC] georgekazdev at gmail dot com
-: egeorgekaz at gmail dot com +: georgekazdev at gmail dot com
 [2018-08-15 16:05 UTC] georgekazdev at gmail dot com
changed email address
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jul 26 03:01:23 2021 UTC