php.net |  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
Votes:4
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
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

Patches

Pull Requests

History

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