|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74824 Western European Summer Time (WEST) should be corrected in the timezone map
Submitted: 2017-06-28 17:38 UTC Modified: 2021-11-18 17:17 UTC
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:1 (25.0%)
From: hfm dot anwa at gmail dot com Assigned: cmb (profile)
Status: Not a bug Package: Date/time related
PHP Version: master-Git-2017-06-28 (Git) OS: Any
Private report: No CVE-ID: None
 [2017-06-28 17:38 UTC] hfm dot anwa at gmail dot com
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:;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:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-11-18 17:17 UTC]
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2021-11-18 17:17 UTC]
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] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 23:01:36 2024 UTC