moment-timezone
Version:
Timezone plugin for Moment.js.
565 lines (442 loc) • 95.3 kB
JavaScript
var moment = require("../../index");
exports["Europe/Budapest"] = {
"1916" : function (t) {
t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "22:59:59", "1916-04-30T21:59:59+00:00 should be 22:59:59 CET");
t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "00:00:00", "1916-04-30T22:00:00+00:00 should be 00:00:00 CEST");
t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "00:59:59", "1916-09-30T22:59:59+00:00 should be 00:59:59 CEST");
t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "00:00:00", "1916-09-30T23:00:00+00:00 should be 00:00:00 CET");
t.equal(moment("1916-04-30T21:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1916-04-30T21:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1916-04-30T22:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1916-04-30T22:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1916-09-30T22:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1916-09-30T22:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1916-09-30T23:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1916-09-30T23:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1917" : function (t) {
t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1917-04-16T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1917-04-16T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1917-09-17T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1917-09-17T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1917-04-16T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1917-04-16T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1917-04-16T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1917-04-16T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1917-09-17T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1917-09-17T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1917-09-17T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1917-09-17T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1918" : function (t) {
t.equal(moment("1918-04-01T01:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1918-04-01T01:59:59+00:00 should be 02:59:59 CET");
t.equal(moment("1918-04-01T02:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "04:00:00", "1918-04-01T02:00:00+00:00 should be 04:00:00 CEST");
t.equal(moment("1918-09-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1918-09-29T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1918-09-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1918-09-29T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1918-04-01T01:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1918-04-01T01:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1918-04-01T02:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1918-04-01T02:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1918-09-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1918-09-29T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1918-09-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1918-09-29T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1919" : function (t) {
t.equal(moment("1919-04-15T01:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1919-04-15T01:59:59+00:00 should be 02:59:59 CET");
t.equal(moment("1919-04-15T02:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "04:00:00", "1919-04-15T02:00:00+00:00 should be 04:00:00 CEST");
t.equal(moment("1919-09-15T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1919-09-15T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1919-09-15T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1919-09-15T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1919-04-15T01:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1919-04-15T01:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1919-04-15T02:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1919-04-15T02:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1919-09-15T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1919-09-15T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1919-09-15T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1919-09-15T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1920" : function (t) {
t.equal(moment("1920-04-05T01:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1920-04-05T01:59:59+00:00 should be 02:59:59 CET");
t.equal(moment("1920-04-05T02:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "04:00:00", "1920-04-05T02:00:00+00:00 should be 04:00:00 CEST");
t.equal(moment("1920-09-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1920-09-30T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1920-09-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1920-09-30T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1920-04-05T01:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1920-04-05T01:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1920-04-05T02:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1920-04-05T02:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1920-09-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1920-09-30T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1920-09-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1920-09-30T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1941" : function (t) {
t.equal(moment("1941-04-06T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1941-04-06T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1941-04-06T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1941-04-06T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1941-04-06T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1941-04-06T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1941-04-06T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1941-04-06T01:00:00+00:00 should be -120 minutes offset in CEST");
t.done();
},
"1942" : function (t) {
t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1942-11-02T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1942-11-02T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1942-11-02T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1942-11-02T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1942-11-02T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1942-11-02T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1943" : function (t) {
t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1943-03-29T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1943-03-29T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1943-10-04T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1943-10-04T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1943-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1943-03-29T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1943-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1943-03-29T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1943-10-04T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1943-10-04T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1943-10-04T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1943-10-04T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1944" : function (t) {
t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1944-04-03T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1944-10-02T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1944-10-02T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1944-04-03T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1944-04-03T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1944-10-02T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1944-10-02T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1944-10-02T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1944-10-02T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1945" : function (t) {
t.equal(moment("1945-05-01T21:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "22:59:59", "1945-05-01T21:59:59+00:00 should be 22:59:59 CET");
t.equal(moment("1945-05-01T22:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "00:00:00", "1945-05-01T22:00:00+00:00 should be 00:00:00 CEST");
t.equal(moment("1945-11-02T21:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1945-11-02T21:59:59+00:00 should be 23:59:59 CEST");
t.equal(moment("1945-11-02T22:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:00:00", "1945-11-02T22:00:00+00:00 should be 23:00:00 CET");
t.equal(moment("1945-05-01T21:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1945-05-01T21:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1945-05-01T22:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1945-05-01T22:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1945-11-02T21:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1945-11-02T21:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1945-11-02T22:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1945-11-02T22:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1946" : function (t) {
t.equal(moment("1946-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1946-03-31T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1946-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1946-03-31T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1946-10-06T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1946-10-06T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1946-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1946-03-31T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1946-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1946-03-31T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1946-10-06T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1946-10-06T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1946-10-06T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1946-10-06T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1947" : function (t) {
t.equal(moment("1947-04-06T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1947-04-06T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1947-04-06T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1947-04-06T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1947-10-05T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1947-10-05T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1947-10-05T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1947-10-05T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1947-04-06T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1947-04-06T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1947-04-06T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1947-04-06T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1947-10-05T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1947-10-05T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1947-10-05T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1947-10-05T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1948" : function (t) {
t.equal(moment("1948-04-04T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1948-04-04T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1948-04-04T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1948-04-04T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1948-10-03T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1948-10-03T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1948-04-04T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1948-04-04T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1948-04-04T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1948-04-04T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1948-10-03T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1948-10-03T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1948-10-03T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1948-10-03T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1949" : function (t) {
t.equal(moment("1949-04-10T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1949-04-10T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1949-04-10T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1949-04-10T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1949-10-02T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1949-10-02T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1949-10-02T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1949-10-02T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1949-04-10T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1949-04-10T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1949-04-10T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1949-04-10T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1949-10-02T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1949-10-02T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1949-10-02T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1949-10-02T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1950" : function (t) {
t.equal(moment("1950-04-17T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1950-04-17T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1950-04-17T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1950-04-17T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1950-10-23T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1950-10-23T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1950-10-23T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1950-10-23T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1950-04-17T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1950-04-17T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1950-04-17T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1950-04-17T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1950-10-23T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1950-10-23T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1950-10-23T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1950-10-23T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1954" : function (t) {
t.equal(moment("1954-05-22T22:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1954-05-22T22:59:59+00:00 should be 23:59:59 CET");
t.equal(moment("1954-05-22T23:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:00:00", "1954-05-22T23:00:00+00:00 should be 01:00:00 CEST");
t.equal(moment("1954-10-02T21:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1954-10-02T21:59:59+00:00 should be 23:59:59 CEST");
t.equal(moment("1954-10-02T22:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:00:00", "1954-10-02T22:00:00+00:00 should be 23:00:00 CET");
t.equal(moment("1954-05-22T22:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1954-05-22T22:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1954-05-22T23:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1954-05-22T23:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1954-10-02T21:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1954-10-02T21:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1954-10-02T22:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1954-10-02T22:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1955" : function (t) {
t.equal(moment("1955-05-22T22:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1955-05-22T22:59:59+00:00 should be 23:59:59 CET");
t.equal(moment("1955-05-22T23:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:00:00", "1955-05-22T23:00:00+00:00 should be 01:00:00 CEST");
t.equal(moment("1955-10-02T21:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1955-10-02T21:59:59+00:00 should be 23:59:59 CEST");
t.equal(moment("1955-10-02T22:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:00:00", "1955-10-02T22:00:00+00:00 should be 23:00:00 CET");
t.equal(moment("1955-05-22T22:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1955-05-22T22:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1955-05-22T23:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1955-05-22T23:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1955-10-02T21:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1955-10-02T21:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1955-10-02T22:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1955-10-02T22:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1956" : function (t) {
t.equal(moment("1956-06-02T22:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1956-06-02T22:59:59+00:00 should be 23:59:59 CET");
t.equal(moment("1956-06-02T23:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:00:00", "1956-06-02T23:00:00+00:00 should be 01:00:00 CEST");
t.equal(moment("1956-09-29T21:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:59:59", "1956-09-29T21:59:59+00:00 should be 23:59:59 CEST");
t.equal(moment("1956-09-29T22:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "23:00:00", "1956-09-29T22:00:00+00:00 should be 23:00:00 CET");
t.equal(moment("1956-06-02T22:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1956-06-02T22:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1956-06-02T23:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1956-06-02T23:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1956-09-29T21:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1956-09-29T21:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1956-09-29T22:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1956-09-29T22:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1957" : function (t) {
t.equal(moment("1957-06-01T23:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "00:59:59", "1957-06-01T23:59:59+00:00 should be 00:59:59 CET");
t.equal(moment("1957-06-02T00:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1957-06-02T00:00:00+00:00 should be 02:00:00 CEST");
t.equal(moment("1957-09-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1957-09-29T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1957-09-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1957-09-29T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1957-06-01T23:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1957-06-01T23:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1957-06-02T00:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1957-06-02T00:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1957-09-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1957-09-29T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1957-09-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1957-09-29T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1980" : function (t) {
t.equal(moment("1980-04-05T23:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "00:59:59", "1980-04-05T23:59:59+00:00 should be 00:59:59 CET");
t.equal(moment("1980-04-06T00:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1980-04-06T00:00:00+00:00 should be 02:00:00 CEST");
t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1980-09-28T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1980-09-28T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1980-04-05T23:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1980-04-05T23:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1980-04-06T00:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1980-04-06T00:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1980-09-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1980-09-28T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1980-09-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1980-09-28T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1981" : function (t) {
t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1981-03-29T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1981-03-29T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1981-09-27T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1981-09-27T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1981-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1981-03-29T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1981-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1981-03-29T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1981-09-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1981-09-27T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1981-09-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1981-09-27T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1982" : function (t) {
t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1982-03-28T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1982-03-28T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1982-09-26T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1982-09-26T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1982-03-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1982-03-28T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1982-03-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1982-03-28T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1982-09-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1982-09-26T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1982-09-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1982-09-26T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1983" : function (t) {
t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1983-03-27T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1983-03-27T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1983-09-25T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1983-09-25T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1983-03-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1983-03-27T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1983-03-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1983-03-27T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1983-09-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1983-09-25T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1983-09-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1983-09-25T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1984" : function (t) {
t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1984-03-25T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1984-03-25T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1984-09-30T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1984-09-30T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1984-03-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1984-03-25T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1984-03-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1984-03-25T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1984-09-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1984-09-30T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1984-09-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1984-09-30T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1985" : function (t) {
t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1985-03-31T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1985-03-31T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1985-09-29T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1985-09-29T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1985-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1985-03-31T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1985-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1985-03-31T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1985-09-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1985-09-29T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1985-09-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1985-09-29T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1986" : function (t) {
t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1986-03-30T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1986-03-30T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1986-09-28T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1986-09-28T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1986-03-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1986-03-30T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1986-03-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1986-03-30T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1986-09-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1986-09-28T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1986-09-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1986-09-28T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1987" : function (t) {
t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1987-03-29T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1987-03-29T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1987-09-27T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1987-09-27T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1987-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1987-03-29T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1987-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1987-03-29T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1987-09-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1987-09-27T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1987-09-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1987-09-27T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1988" : function (t) {
t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1988-03-27T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1988-03-27T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1988-09-25T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1988-09-25T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1988-03-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1988-03-27T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1988-03-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1988-03-27T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1988-09-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1988-09-25T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1988-09-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1988-09-25T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1989" : function (t) {
t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1989-03-26T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1989-03-26T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1989-09-24T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1989-09-24T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1989-03-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1989-03-26T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1989-03-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1989-03-26T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1989-09-24T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1989-09-24T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1989-09-24T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1989-09-24T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1990" : function (t) {
t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1990-03-25T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1990-03-25T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1990-09-30T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1990-09-30T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1990-03-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1990-03-25T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1990-03-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1990-03-25T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1990-09-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1990-09-30T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1990-09-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1990-09-30T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1991" : function (t) {
t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1991-03-31T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1991-03-31T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1991-09-29T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1991-09-29T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1991-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1991-03-31T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1991-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1991-03-31T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1991-09-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1991-09-29T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1991-09-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1991-09-29T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1992" : function (t) {
t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1992-03-29T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1992-03-29T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1992-09-27T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1992-09-27T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1992-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1992-03-29T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1992-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1992-03-29T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1992-09-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1992-09-27T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1992-09-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1992-09-27T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1993" : function (t) {
t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1993-03-28T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1993-03-28T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1993-09-26T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1993-09-26T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1993-03-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1993-03-28T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1993-03-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1993-03-28T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1993-09-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1993-09-26T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1993-09-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1993-09-26T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1994" : function (t) {
t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1994-03-27T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1994-03-27T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1994-09-25T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1994-09-25T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1994-03-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1994-03-27T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1994-03-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1994-03-27T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1994-09-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1994-09-25T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1994-09-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1994-09-25T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1995" : function (t) {
t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1995-03-26T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1995-03-26T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1995-09-24T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1995-09-24T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1995-03-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1995-03-26T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1995-03-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1995-03-26T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1995-09-24T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1995-09-24T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1995-09-24T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1995-09-24T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1996" : function (t) {
t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1996-03-31T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1996-03-31T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1996-10-27T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1996-10-27T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1996-03-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1996-03-31T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1996-03-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1996-03-31T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1996-10-27T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1996-10-27T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1996-10-27T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1996-10-27T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1997" : function (t) {
t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1997-03-30T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1997-03-30T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1997-10-26T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1997-10-26T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1997-03-30T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1997-03-30T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1997-03-30T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1997-03-30T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1997-10-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1997-10-26T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1997-10-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1997-10-26T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1998" : function (t) {
t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1998-03-29T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1998-03-29T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1998-10-25T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1998-10-25T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1998-03-29T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1998-03-29T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1998-10-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1998-10-25T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1998-10-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1998-10-25T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1999" : function (t) {
t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "1999-03-28T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "1999-03-28T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "1999-10-31T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "1999-10-31T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "1999-03-28T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1999-03-28T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "1999-03-28T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1999-10-31T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "1999-10-31T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1999-10-31T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "1999-10-31T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"2000" : function (t) {
t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2000-03-26T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2000-03-26T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2000-10-29T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2000-10-29T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("2000-03-26T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2000-03-26T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("2000-03-26T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2000-03-26T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("2000-10-29T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2000-10-29T00:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("2000-10-29T01:00:00+00:00").tz("Europe/Budapest").zone(), -60, "2000-10-29T01:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"2001" : function (t) {
t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "01:59:59", "2001-03-25T00:59:59+00:00 should be 01:59:59 CET");
t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "03:00:00", "2001-03-25T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:59:59", "2001-10-28T00:59:59+00:00 should be 02:59:59 CEST");
t.equal(moment("2001-10-28T01:00:00+00:00").tz("Europe/Budapest").format("HH:mm:ss"), "02:00:00", "2001-10-28T01:00:00+00:00 should be 02:00:00 CET");
t.equal(moment("2001-03-25T00:59:59+00:00").tz("Europe/Budapest").zone(), -60, "2001-03-25T00:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("2001-03-25T01:00:00+00:00").tz("Europe/Budapest").zone(), -120, "2001-03-25T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("2001-10-28T00:59:59+00:00").tz("Europe/Budapest").zone(), -120, "2001-10-28T00:59:59+00:00 should be -1