Bug 1562832 - Update timezones to 2019b; r=Fallen
authorGeoff Lankow <geoff@darktrojan.net>
Wed, 03 Jul 2019 16:38:31 +1200
changeset 36017 6e0cf6363e1713056c48b969cde1fcc1f462ac23
parent 36016 7f8bd17d9565d9bb4415f4b1a2635fe32d7370c5
child 36018 679e2f55f7fc3954cd7f9524bbaa2ce7bdddf26a
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersFallen
bugs1562832
Bug 1562832 - Update timezones to 2019b; r=Fallen
calendar/test/unit/data/previous.json
calendar/test/unit/test_timezone_changes.js
calendar/timezones/zones.json
--- a/calendar/test/unit/data/previous.json
+++ b/calendar/test/unit/data/previous.json
@@ -1,10 +1,10 @@
 {
-  "version": "2.2018i",
+  "version": "2.2019a",
   "aliases": [
     "AUS Central Standard Time",
     "AUS Eastern Standard Time",
     "Afghanistan Standard Time",
     "Africa/Asmera",
     "Africa/Timbuktu",
     "Alaskan Standard Time",
     "America/Argentina/ComodRivadavia",
--- a/calendar/test/unit/test_timezone_changes.js
+++ b/calendar/test/unit/test_timezone_changes.js
@@ -44,16 +44,17 @@ function run_test() {
         time.resetTo(2017, month, 1, 0, 0, 0, zone);
         equal(time.timezoneOffset, UTC_MINUS_4, time.toString());
     }
 
     run_next_test();
 }); */
 
 // Brazil's rules are complicated. This tests every change in the time range we have data for.
+// Updated for 2019b: Brazil no longer has DST.
 add_test(function testSaoPaulo() {
     let time = cal.createDateTime();
     let zone = cal.getTimezoneService().getTimezone("America/Sao_Paulo");
 
     time.resetTo(2018, FEBRUARY, 17, 0, 0, 0, zone);
     equal(time.timezoneOffset, UTC_MINUS_2, time.toString());
 
     time.resetTo(2018, FEBRUARY, 18, 0, 0, 0, zone);
@@ -70,48 +71,24 @@ add_test(function testSaoPaulo() {
 
     time.resetTo(2019, FEBRUARY, 17, 0, 0, 0, zone);
     equal(time.timezoneOffset, UTC_MINUS_3, time.toString());
 
     time.resetTo(2019, NOVEMBER, 2, 0, 0, 0, zone);
     equal(time.timezoneOffset, UTC_MINUS_3, time.toString());
 
     time.resetTo(2019, NOVEMBER, 3, 0, 0, 0, zone);
-    equal(time.timezoneOffset, UTC_MINUS_2, time.toString());
+    equal(time.timezoneOffset, UTC_MINUS_3, time.toString());
 
     time.resetTo(2020, FEBRUARY, 15, 0, 0, 0, zone);
-    equal(time.timezoneOffset, UTC_MINUS_2, time.toString());
+    equal(time.timezoneOffset, UTC_MINUS_3, time.toString());
 
     time.resetTo(2020, FEBRUARY, 16, 0, 0, 0, zone);
     equal(time.timezoneOffset, UTC_MINUS_3, time.toString());
 
     time.resetTo(2020, OCTOBER, 31, 0, 0, 0, zone);
     equal(time.timezoneOffset, UTC_MINUS_3, time.toString());
 
     time.resetTo(2020, NOVEMBER, 1, 0, 0, 0, zone);
-    equal(time.timezoneOffset, UTC_MINUS_2, time.toString());
-
-    time.resetTo(2021, FEBRUARY, 20, 0, 0, 0, zone);
-    equal(time.timezoneOffset, UTC_MINUS_2, time.toString());
-
-    time.resetTo(2021, FEBRUARY, 21, 0, 0, 0, zone);
     equal(time.timezoneOffset, UTC_MINUS_3, time.toString());
 
-    time.resetTo(2021, NOVEMBER, 6, 0, 0, 0, zone);
-    equal(time.timezoneOffset, UTC_MINUS_3, time.toString());
-
-    time.resetTo(2021, NOVEMBER, 7, 0, 0, 0, zone);
-    equal(time.timezoneOffset, UTC_MINUS_2, time.toString());
-
-    time.resetTo(2022, FEBRUARY, 19, 0, 0, 0, zone);
-    equal(time.timezoneOffset, UTC_MINUS_2, time.toString());
-
-    time.resetTo(2022, FEBRUARY, 20, 0, 0, 0, zone);
-    equal(time.timezoneOffset, UTC_MINUS_3, time.toString());
-
-    time.resetTo(2022, NOVEMBER, 5, 0, 0, 0, zone);
-    equal(time.timezoneOffset, UTC_MINUS_3, time.toString());
-
-    time.resetTo(2022, NOVEMBER, 6, 0, 0, 0, zone);
-    equal(time.timezoneOffset, UTC_MINUS_2, time.toString());
-
     run_next_test();
 });
--- a/calendar/timezones/zones.json
+++ b/calendar/timezones/zones.json
@@ -1,10 +1,10 @@
 {
-  "version": "2.2019a",
+  "version": "2.2019b",
   "aliases": {
     "AUS Central Standard Time": {
       "aliasTo": "Australia/Darwin"
     },
     "AUS Eastern Standard Time": {
       "aliasTo": "Australia/Sydney"
     },
     "Afghanistan Standard Time": {
@@ -994,20 +994,19 @@
         "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:-0700\r\nTZOFFSETTO:-0600\r\nTZNAME:MDT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nEND:DAYLIGHT",
         "BEGIN:STANDARD\r\nTZOFFSETFROM:-0600\r\nTZOFFSETTO:-0700\r\nTZNAME:MST\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nEND:STANDARD"
       ],
       "latitude": "+0690650",
       "longitude": "-1050310"
     },
     "America/Campo_Grande": {
       "ics": [
-        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0300\r\nTZNAME:-03\r\nDTSTART:20181104T000000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nEND:DAYLIGHT",
-        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0300\r\nTZNAME:-03\r\nDTSTART:19700101T000000\r\nEND:DAYLIGHT",
-        "BEGIN:STANDARD\r\nTZOFFSETFROM:-0300\r\nTZOFFSETTO:-0400\r\nTZNAME:-04\r\nDTSTART:20180218T000000\r\nRDATE:20180218T000000\r\nRDATE:20190217T000000\r\nEND:STANDARD",
-        "BEGIN:STANDARD\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0400\r\nTZNAME:-04\r\nDTSTART:20200216T000000\r\nRDATE:20200216T000000\r\nRDATE:20210221T000000\r\nRDATE:20220220T000000\r\nEND:STANDARD"
+        "BEGIN:STANDARD\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0400\r\nTZNAME:-04\r\nDTSTART:19700101T000000\r\nEND:STANDARD",
+        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0300\r\nTZNAME:-03\r\nDTSTART:20181104T000000\r\nRDATE:20181104T000000\r\nEND:DAYLIGHT",
+        "BEGIN:STANDARD\r\nTZOFFSETFROM:-0300\r\nTZOFFSETTO:-0400\r\nTZNAME:-04\r\nDTSTART:20180218T000000\r\nRDATE:20180218T000000\r\nRDATE:20190217T000000\r\nEND:STANDARD"
       ],
       "latitude": "-0202700",
       "longitude": "-0543700"
     },
     "America/Cancun": {
       "ics": [
         "BEGIN:STANDARD\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0500\r\nTZNAME:EST\r\nDTSTART:19700101T000000\r\nEND:STANDARD"
       ],
@@ -1062,20 +1061,19 @@
       "ics": [
         "BEGIN:STANDARD\r\nTZOFFSETFROM:-0700\r\nTZOFFSETTO:-0700\r\nTZNAME:MST\r\nDTSTART:19700101T000000\r\nEND:STANDARD"
       ],
       "latitude": "+0490600",
       "longitude": "-1163100"
     },
     "America/Cuiaba": {
       "ics": [
-        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0300\r\nTZNAME:-03\r\nDTSTART:20181104T000000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nEND:DAYLIGHT",
-        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0300\r\nTZNAME:-03\r\nDTSTART:19700101T000000\r\nEND:DAYLIGHT",
+        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0300\r\nTZNAME:-03\r\nDTSTART:20181104T000000\r\nRDATE:20181104T000000\r\nEND:DAYLIGHT",
         "BEGIN:STANDARD\r\nTZOFFSETFROM:-0300\r\nTZOFFSETTO:-0400\r\nTZNAME:-04\r\nDTSTART:20180218T000000\r\nRDATE:20180218T000000\r\nRDATE:20190217T000000\r\nEND:STANDARD",
-        "BEGIN:STANDARD\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0400\r\nTZNAME:-04\r\nDTSTART:20200216T000000\r\nRDATE:20200216T000000\r\nRDATE:20210221T000000\r\nRDATE:20220220T000000\r\nEND:STANDARD"
+        "BEGIN:STANDARD\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0400\r\nTZNAME:-04\r\nDTSTART:19700101T000000\r\nEND:STANDARD"
       ],
       "latitude": "-0153500",
       "longitude": "-0560500"
     },
     "America/Curacao": {
       "ics": [
         "BEGIN:STANDARD\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0400\r\nTZNAME:AST\r\nDTSTART:19700101T000000\r\nEND:STANDARD"
       ],
@@ -1728,20 +1726,19 @@
       "ics": [
         "BEGIN:STANDARD\r\nTZOFFSETFROM:-0400\r\nTZOFFSETTO:-0400\r\nTZNAME:AST\r\nDTSTART:19700101T000000\r\nEND:STANDARD"
       ],
       "latitude": "+0182800",
       "longitude": "-0695400"
     },
     "America/Sao_Paulo": {
       "ics": [
-        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:-0300\r\nTZOFFSETTO:-0200\r\nTZNAME:-02\r\nDTSTART:20181104T000000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nEND:DAYLIGHT",
-        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:-0300\r\nTZOFFSETTO:-0200\r\nTZNAME:-02\r\nDTSTART:19700101T000000\r\nEND:DAYLIGHT",
+        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:-0300\r\nTZOFFSETTO:-0200\r\nTZNAME:-02\r\nDTSTART:20181104T000000\r\nRDATE:20181104T000000\r\nEND:DAYLIGHT",
         "BEGIN:STANDARD\r\nTZOFFSETFROM:-0200\r\nTZOFFSETTO:-0300\r\nTZNAME:-03\r\nDTSTART:20180218T000000\r\nRDATE:20180218T000000\r\nRDATE:20190217T000000\r\nEND:STANDARD",
-        "BEGIN:STANDARD\r\nTZOFFSETFROM:-0300\r\nTZOFFSETTO:-0300\r\nTZNAME:-03\r\nDTSTART:20200216T000000\r\nRDATE:20200216T000000\r\nRDATE:20210221T000000\r\nRDATE:20220220T000000\r\nEND:STANDARD"
+        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:-0200\r\nTZOFFSETTO:-0200\r\nTZNAME:-02\r\nDTSTART:19700101T000000\r\nEND:DAYLIGHT"
       ],
       "latitude": "-0233200",
       "longitude": "-0463700"
     },
     "America/Scoresbysund": {
       "ics": [
         "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:-0100\r\nTZOFFSETTO:+0000\r\nTZNAME:+00\r\nDTSTART:19700329T000000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r\nEND:DAYLIGHT",
         "BEGIN:STANDARD\r\nTZOFFSETFROM:+0000\r\nTZOFFSETTO:-0100\r\nTZNAME:-01\r\nDTSTART:19701025T010000\r\nRRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r\nEND:STANDARD"
@@ -2157,26 +2154,28 @@
         "BEGIN:STANDARD\r\nTZOFFSETFROM:+0300\r\nTZOFFSETTO:+0200\r\nTZNAME:EET\r\nDTSTART:19701025T040000\r\nRRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r\nEND:STANDARD",
         "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:+0200\r\nTZOFFSETTO:+0300\r\nTZNAME:EEST\r\nDTSTART:20180325T030000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r\nEND:DAYLIGHT"
       ],
       "latitude": "+0350700",
       "longitude": "+0335700"
     },
     "Asia/Gaza": {
       "ics": [
-        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:+0200\r\nTZOFFSETTO:+0300\r\nTZNAME:EEST\r\nDTSTART:19700328T010000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYMONTHDAY=24,25,26,27,28,29,30;BYDAY=SA\r\nEND:DAYLIGHT",
-        "BEGIN:STANDARD\r\nTZOFFSETFROM:+0300\r\nTZOFFSETTO:+0200\r\nTZNAME:EET\r\nDTSTART:19701031T010000\r\nRRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SA\r\nEND:STANDARD"
+        "BEGIN:STANDARD\r\nTZOFFSETFROM:+0300\r\nTZOFFSETTO:+0200\r\nTZNAME:EET\r\nDTSTART:19701031T010000\r\nRRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SA\r\nEND:STANDARD",
+        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:+0200\r\nTZOFFSETTO:+0300\r\nTZNAME:EEST\r\nDTSTART:20190329T000000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1FR\r\nEND:DAYLIGHT",
+        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:+0200\r\nTZOFFSETTO:+0300\r\nTZNAME:EEST\r\nDTSTART:20180324T010000\r\nRDATE:20180324T010000\r\nEND:DAYLIGHT"
       ],
       "latitude": "+0313000",
       "longitude": "+0342800"
     },
     "Asia/Hebron": {
       "ics": [
-        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:+0200\r\nTZOFFSETTO:+0300\r\nTZNAME:EEST\r\nDTSTART:19700328T010000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYMONTHDAY=24,25,26,27,28,29,30;BYDAY=SA\r\nEND:DAYLIGHT",
-        "BEGIN:STANDARD\r\nTZOFFSETFROM:+0300\r\nTZOFFSETTO:+0200\r\nTZNAME:EET\r\nDTSTART:19701031T010000\r\nRRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SA\r\nEND:STANDARD"
+        "BEGIN:STANDARD\r\nTZOFFSETFROM:+0300\r\nTZOFFSETTO:+0200\r\nTZNAME:EET\r\nDTSTART:19701031T010000\r\nRRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SA\r\nEND:STANDARD",
+        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:+0200\r\nTZOFFSETTO:+0300\r\nTZNAME:EEST\r\nDTSTART:20190329T000000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1FR\r\nEND:DAYLIGHT",
+        "BEGIN:DAYLIGHT\r\nTZOFFSETFROM:+0200\r\nTZOFFSETTO:+0300\r\nTZNAME:EEST\r\nDTSTART:20180324T010000\r\nRDATE:20180324T010000\r\nEND:DAYLIGHT"
       ],
       "latitude": "+0313200",
       "longitude": "+0350542"
     },
     "Asia/Ho_Chi_Minh": {
       "ics": [
         "BEGIN:STANDARD\r\nTZOFFSETFROM:+0700\r\nTZOFFSETTO:+0700\r\nTZNAME:+07\r\nDTSTART:19700101T000000\r\nEND:STANDARD"
       ],