Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime-TimeZone CPAN distribution.

Report information
The Basics
Id: 56445
Status: resolved
Priority: 0/
Queue: DateTime-TimeZone

People
Owner: Nobody in particular
Requestors: david.pinkowitz [...] numarasoftware.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.16
Fixed in: 1.17



Subject: Windows Test Failures
Microsoft updated time zones on Windows in February. See: http://support.microsoft.com/KB/979306 This added four new time zones, which caused test failures on Windows. In addition, there were other zones that were updated by Microsoft, which were currently pointing to the wrong cities, which in some cases, would lead to incorrect time conversions. These are corrected. I've attached a patch with these proposed changes.
Subject: datetime.patch
Index: site/lib/DateTime/TimeZone/Local/Win32.pm =================================================================== --- site/lib/DateTime/TimeZone/Local/Win32.pm (revision 10311) +++ site/lib/DateTime/TimeZone/Local/Win32.pm (working copy) @@ -38,6 +38,7 @@ 'Azores Standard Time' => 'Atlantic/Azores', 'Bangkok' => 'Asia/Bangkok', 'Bangkok Standard Time' => 'Asia/Bangkok', + 'Bangladesh Standard Time' => 'Asia/Dhaka', 'Beijing' => 'Asia/Shanghai', 'Canada Central' => 'America/Regina', 'Canada Central Standard Time' => 'America/Regina', @@ -48,9 +49,9 @@ 'Cen. Australia Standard Time' => 'Australia/Adelaide', 'Central' => 'America/Chicago', 'Central America Standard Time' => 'America/Regina', - 'Central Asia' => 'Asia/Dhaka', - 'Central Asia Standard Time' => 'Asia/Dhaka', - 'Central Brazilian Standard Time' => 'America/Manaus', + 'Central Asia' => 'Asia/Almaty', + 'Central Asia Standard Time' => 'Asia/Almaty', + 'Central Brazilian Standard Time' => 'America/Cuiaba', 'Central Europe' => 'Europe/Prague', 'Central Europe Standard Time' => 'Europe/Prague', 'Central European' => 'Europe/Belgrade', @@ -137,12 +138,12 @@ 'Romance Standard Time' => 'Europe/Paris', 'Russian' => 'Europe/Moscow', 'Russian Standard Time' => 'Europe/Moscow', - 'SA Eastern' => 'America/Buenos_Aires', - 'SA Eastern Standard Time' => 'America/Buenos_Aires', + 'SA Eastern' => 'America/Cayenne', + 'SA Eastern Standard Time' => 'America/Cayenne', 'SA Pacific' => 'America/Bogota', 'SA Pacific Standard Time' => 'America/Bogota', - 'SA Western' => 'America/Caracas', - 'SA Western Standard Time' => 'America/Caracas', + 'SA Western' => 'America/Guyana', + 'SA Western Standard Time' => 'America/Guyana', 'Samoa' => 'Pacific/Apia', 'Samoa Standard Time' => 'Pacific/Apia', 'Saudi Arabia' => 'Asia/Riyadh', @@ -169,6 +170,9 @@ 'US Mountain' => 'America/Phoenix', 'US Mountain Standard Time' => 'America/Phoenix', 'UTC' => 'UTC', + 'UTC+12' => '+1200', + 'UTC-02' => '-0200', + 'UTC-11' => '-1100', 'Venezuela Standard Time' => 'America/Caracas', 'Vladivostok' => 'Asia/Vladivostok', 'Vladivostok Standard Time' => 'Asia/Vladivostok',