Bug #74824 [NEW]: Western European Summer Time (WEST) should be corrected in the timezone map
| From: | hfm dot anwa at gmail dot com | Date: | Wed, 28 Jun 2017 17:38:43 +0000 |
| Subject: | Bug #74824 [NEW]: Western European Summer Time (WEST) should be corrected in the timezone map | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-209714@lists.php.net to get a copy of this message | ||
From: hfm dot anwa at gmail dot com
Operating system: Any
PHP version: master-Git-2017-06-28 (Git)
Package: Date/time related
Bug Type: Bug
Bug description:Western European Summer Time (WEST) should be corrected in the timezone map
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 bug report at https://bugs.php.net/bug.php?id=74824&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74824&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74824&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74824&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74824&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74824&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74824&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74824&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74824&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74824&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74824&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74824&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74824&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74824&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74824&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74824&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74824&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74824&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74824&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74824&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74824&r=mysqlcfg