Bug #74824 [Opn->Nab]: Western European Summer Time (WEST) should be corrected in the timezone map
| From: | cmb@php.net | Date: | Thu, 18 Nov 2021 17:17:55 +0000 |
| Subject: | Bug #74824 [Opn->Nab]: Western European Summer Time (WEST) should be corrected in the timezone map | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-237858@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74824&edit=1
ID: 74824
Updated by: cmb@php.net
Reported by: hfm dot anwa at gmail dot com
Summary: Western European Summer Time (WEST) should be
corrected in the timezone map
-Status: Open
+Status: Not a bug
Type: Bug
Package: Date/time related
Operating System: Any
PHP Version: master-Git-2017-06-28 (Git)
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Please report that upstream[1]. While PHP ships a bundled
timelib, we usually do not apply any patches there, but rather
update from upstream from time to time.
[1] <https://github.com/derickr/timelib/issues>
Previous Comments:
------------------------------------------------------------------------
[2017-06-28 17:38:42] hfm dot anwa at gmail dot com
Description:
------------
The function timezone_name_from_abbr returns an inaccurate result when WEST is provided as an
abbreviation without further parameters. I think this is do to this map:
https://git.php.net/?p=php-src.git;a=blob;f=ext/date/lib/timezonemap.h;h=d8898bf33dc76b90b12b0f01d2e1b832d87d68b2;hb=refs/heads/master#l1510
This map should be updated. All non european timezones should be removed and Paris, Luxembourg,
Brussels, Madrid and Monaco also, since they are not part of WEST.
Test script:
---------------
echo timezone_name_from_abbr('WEST'); // echoes Europe/Paris it should return
Europe/Lisbon or other adequate result
Expected result:
----------------
Europe/Lisbon
Actual result:
--------------
Europe/Paris
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74824&edit=1