|  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: -
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:
Status: Open Package: Date/time related
PHP Version: master-Git-2017-06-28 (Git) OS: Any
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: hfm dot anwa at gmail dot com
New email:
PHP Version: OS:


 [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

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Aug 04 19:01:26 2021 UTC