moment-timezone
Version:
Timezone plugin for Moment.js.
577 lines (449 loc) • 74.4 kB
JavaScript
var moment = require("../../index");
exports["Europe/Vilnius"] = {
"1916" : function (t) {
t.equal(moment("1916-12-31T22:35:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1916-12-31T22:35:59+00:00 should be 23:59:59 WMT");
t.equal(moment("1916-12-31T22:36:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "00:11:36", "1916-12-31T22:36:00+00:00 should be 00:11:36 KMT");
t.equal(moment("1916-12-31T22:35:59+00:00").tz("Europe/Vilnius").zone(), -84, "1916-12-31T22:35:59+00:00 should be -84 minutes offset in WMT");
t.equal(moment("1916-12-31T22:36:00+00:00").tz("Europe/Vilnius").zone(), -5736 / 60, "1916-12-31T22:36:00+00:00 should be -5736 / 60 minutes offset in KMT");
t.done();
},
"1919" : function (t) {
t.equal(moment("1919-10-09T22:24:23+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1919-10-09T22:24:23+00:00 should be 23:59:59 KMT");
t.equal(moment("1919-10-09T22:24:24+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:24:24", "1919-10-09T22:24:24+00:00 should be 23:24:24 CET");
t.equal(moment("1919-10-09T22:24:23+00:00").tz("Europe/Vilnius").zone(), -5736 / 60, "1919-10-09T22:24:23+00:00 should be -5736 / 60 minutes offset in KMT");
t.equal(moment("1919-10-09T22:24:24+00:00").tz("Europe/Vilnius").zone(), -60, "1919-10-09T22:24:24+00:00 should be -60 minutes offset in CET");
t.done();
},
"1920" : function (t) {
t.equal(moment("1920-07-11T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1920-07-11T22:59:59+00:00 should be 23:59:59 CET");
t.equal(moment("1920-07-11T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:00:00", "1920-07-11T23:00:00+00:00 should be 01:00:00 EET");
t.equal(moment("1920-10-08T21:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1920-10-08T21:59:59+00:00 should be 23:59:59 EET");
t.equal(moment("1920-10-08T22:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:00:00", "1920-10-08T22:00:00+00:00 should be 23:00:00 CET");
t.equal(moment("1920-07-11T22:59:59+00:00").tz("Europe/Vilnius").zone(), -60, "1920-07-11T22:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1920-07-11T23:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1920-07-11T23:00:00+00:00 should be -120 minutes offset in EET");
t.equal(moment("1920-10-08T21:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1920-10-08T21:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("1920-10-08T22:00:00+00:00").tz("Europe/Vilnius").zone(), -60, "1920-10-08T22:00:00+00:00 should be -60 minutes offset in CET");
t.done();
},
"1940" : function (t) {
t.equal(moment("1940-08-02T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1940-08-02T22:59:59+00:00 should be 23:59:59 CET");
t.equal(moment("1940-08-02T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1940-08-02T23:00:00+00:00 should be 02:00:00 MSK");
t.equal(moment("1940-08-02T22:59:59+00:00").tz("Europe/Vilnius").zone(), -60, "1940-08-02T22:59:59+00:00 should be -60 minutes offset in CET");
t.equal(moment("1940-08-02T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1940-08-02T23:00:00+00:00 should be -180 minutes offset in MSK");
t.done();
},
"1941" : function (t) {
t.equal(moment("1941-06-23T20:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1941-06-23T20:59:59+00:00 should be 23:59:59 MSK");
t.equal(moment("1941-06-23T21:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:00:00", "1941-06-23T21:00:00+00:00 should be 23:00:00 CEST");
t.equal(moment("1941-06-23T20:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1941-06-23T20:59:59+00:00 should be -180 minutes offset in MSK");
t.equal(moment("1941-06-23T21:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1941-06-23T21: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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").format("HH:mm:ss"), "03:00:00", "1944-04-03T01:00:00+00:00 should be 03:00:00 CEST");
t.equal(moment("1944-07-31T21:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1944-07-31T21:59:59+00:00 should be 23:59:59 CEST");
t.equal(moment("1944-07-31T22:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:00:00", "1944-07-31T22:00:00+00:00 should be 01:00:00 MSK");
t.equal(moment("1944-04-03T00:59:59+00:00").tz("Europe/Vilnius").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/Vilnius").zone(), -120, "1944-04-03T01:00:00+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1944-07-31T21:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1944-07-31T21:59:59+00:00 should be -120 minutes offset in CEST");
t.equal(moment("1944-07-31T22:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1944-07-31T22:00:00+00:00 should be -180 minutes offset in MSK");
t.done();
},
"1981" : function (t) {
t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1981-03-31T20:59:59+00:00 should be 23:59:59 MSK");
t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:00:00", "1981-03-31T21:00:00+00:00 should be 01:00:00 MSD");
t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1981-09-30T19:59:59+00:00 should be 23:59:59 MSD");
t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:00:00", "1981-09-30T20:00:00+00:00 should be 23:00:00 MSK");
t.equal(moment("1981-03-31T20:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1981-03-31T20:59:59+00:00 should be -180 minutes offset in MSK");
t.equal(moment("1981-03-31T21:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1981-03-31T21:00:00+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1981-09-30T19:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1981-09-30T19:59:59+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1981-09-30T20:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1981-09-30T20:00:00+00:00 should be -180 minutes offset in MSK");
t.done();
},
"1982" : function (t) {
t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1982-03-31T20:59:59+00:00 should be 23:59:59 MSK");
t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:00:00", "1982-03-31T21:00:00+00:00 should be 01:00:00 MSD");
t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1982-09-30T19:59:59+00:00 should be 23:59:59 MSD");
t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:00:00", "1982-09-30T20:00:00+00:00 should be 23:00:00 MSK");
t.equal(moment("1982-03-31T20:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1982-03-31T20:59:59+00:00 should be -180 minutes offset in MSK");
t.equal(moment("1982-03-31T21:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1982-03-31T21:00:00+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1982-09-30T19:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1982-09-30T19:59:59+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1982-09-30T20:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1982-09-30T20:00:00+00:00 should be -180 minutes offset in MSK");
t.done();
},
"1983" : function (t) {
t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1983-03-31T20:59:59+00:00 should be 23:59:59 MSK");
t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:00:00", "1983-03-31T21:00:00+00:00 should be 01:00:00 MSD");
t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1983-09-30T19:59:59+00:00 should be 23:59:59 MSD");
t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:00:00", "1983-09-30T20:00:00+00:00 should be 23:00:00 MSK");
t.equal(moment("1983-03-31T20:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1983-03-31T20:59:59+00:00 should be -180 minutes offset in MSK");
t.equal(moment("1983-03-31T21:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1983-03-31T21:00:00+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1983-09-30T19:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1983-09-30T19:59:59+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1983-09-30T20:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1983-09-30T20:00:00+00:00 should be -180 minutes offset in MSK");
t.done();
},
"1984" : function (t) {
t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "23:59:59", "1984-03-31T20:59:59+00:00 should be 23:59:59 MSK");
t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:00:00", "1984-03-31T21:00:00+00:00 should be 01:00:00 MSD");
t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1984-09-29T22:59:59+00:00 should be 02:59:59 MSD");
t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1984-09-29T23:00:00+00:00 should be 02:00:00 MSK");
t.equal(moment("1984-03-31T20:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1984-03-31T20:59:59+00:00 should be -180 minutes offset in MSK");
t.equal(moment("1984-03-31T21:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1984-03-31T21:00:00+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1984-09-29T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1984-09-29T22:59:59+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1984-09-29T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1984-09-29T23:00:00+00:00 should be -180 minutes offset in MSK");
t.done();
},
"1985" : function (t) {
t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1985-03-30T22:59:59+00:00 should be 01:59:59 MSK");
t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1985-03-30T23:00:00+00:00 should be 03:00:00 MSD");
t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1985-09-28T22:59:59+00:00 should be 02:59:59 MSD");
t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1985-09-28T23:00:00+00:00 should be 02:00:00 MSK");
t.equal(moment("1985-03-30T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1985-03-30T22:59:59+00:00 should be -180 minutes offset in MSK");
t.equal(moment("1985-03-30T23:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1985-03-30T23:00:00+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1985-09-28T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1985-09-28T22:59:59+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1985-09-28T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1985-09-28T23:00:00+00:00 should be -180 minutes offset in MSK");
t.done();
},
"1986" : function (t) {
t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1986-03-29T22:59:59+00:00 should be 01:59:59 MSK");
t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1986-03-29T23:00:00+00:00 should be 03:00:00 MSD");
t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1986-09-27T22:59:59+00:00 should be 02:59:59 MSD");
t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1986-09-27T23:00:00+00:00 should be 02:00:00 MSK");
t.equal(moment("1986-03-29T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1986-03-29T22:59:59+00:00 should be -180 minutes offset in MSK");
t.equal(moment("1986-03-29T23:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1986-03-29T23:00:00+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1986-09-27T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1986-09-27T22:59:59+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1986-09-27T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1986-09-27T23:00:00+00:00 should be -180 minutes offset in MSK");
t.done();
},
"1987" : function (t) {
t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1987-03-28T22:59:59+00:00 should be 01:59:59 MSK");
t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1987-03-28T23:00:00+00:00 should be 03:00:00 MSD");
t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1987-09-26T22:59:59+00:00 should be 02:59:59 MSD");
t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1987-09-26T23:00:00+00:00 should be 02:00:00 MSK");
t.equal(moment("1987-03-28T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1987-03-28T22:59:59+00:00 should be -180 minutes offset in MSK");
t.equal(moment("1987-03-28T23:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1987-03-28T23:00:00+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1987-09-26T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1987-09-26T22:59:59+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1987-09-26T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1987-09-26T23:00:00+00:00 should be -180 minutes offset in MSK");
t.done();
},
"1988" : function (t) {
t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1988-03-26T22:59:59+00:00 should be 01:59:59 MSK");
t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1988-03-26T23:00:00+00:00 should be 03:00:00 MSD");
t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1988-09-24T22:59:59+00:00 should be 02:59:59 MSD");
t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1988-09-24T23:00:00+00:00 should be 02:00:00 MSK");
t.equal(moment("1988-03-26T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1988-03-26T22:59:59+00:00 should be -180 minutes offset in MSK");
t.equal(moment("1988-03-26T23:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1988-03-26T23:00:00+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1988-09-24T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1988-09-24T22:59:59+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1988-09-24T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1988-09-24T23:00:00+00:00 should be -180 minutes offset in MSK");
t.done();
},
"1989" : function (t) {
t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1989-03-25T22:59:59+00:00 should be 01:59:59 MSK");
t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1989-03-25T23:00:00+00:00 should be 03:00:00 MSD");
t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 MSD");
t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 MSK");
t.equal(moment("1989-03-25T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1989-03-25T22:59:59+00:00 should be -180 minutes offset in MSK");
t.equal(moment("1989-03-25T23:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1989-03-25T23:00:00+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in MSK");
t.done();
},
"1990" : function (t) {
t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1990-03-24T22:59:59+00:00 should be 01:59:59 MSK");
t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1990-03-24T23:00:00+00:00 should be 03:00:00 MSD");
t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1990-09-29T22:59:59+00:00 should be 02:59:59 MSD");
t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1990-09-29T23:00:00+00:00 should be 02:00:00 MSK");
t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1990-03-24T22:59:59+00:00 should be -180 minutes offset in MSK");
t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Vilnius").zone(), -240, "1990-03-24T23:00:00+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Vilnius").zone(), -240, "1990-09-29T22:59:59+00:00 should be -240 minutes offset in MSD");
t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1990-09-29T23:00:00+00:00 should be -180 minutes offset in MSK");
t.done();
},
"1991" : function (t) {
t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1991-03-30T22:59:59+00:00 should be 01:59:59 MSK");
t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1991-03-30T23:00:00+00:00 should be 02:00:00 EEST");
t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1991-09-28T23:59:59+00:00 should be 02:59:59 EEST");
t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1991-09-29T00:00:00+00:00 should be 02:00:00 EET");
t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1991-03-30T22:59:59+00:00 should be -180 minutes offset in MSK");
t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1991-03-30T23:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1991-09-28T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1991-09-28T23:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1991-09-29T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1991-09-29T00:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"1992" : function (t) {
t.equal(moment("1992-03-28T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1992-03-28T23:59:59+00:00 should be 01:59:59 EET");
t.equal(moment("1992-03-29T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1992-03-29T00:00:00+00:00 should be 03:00:00 EEST");
t.equal(moment("1992-09-26T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1992-09-26T23:59:59+00:00 should be 02:59:59 EEST");
t.equal(moment("1992-09-27T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1992-09-27T00:00:00+00:00 should be 02:00:00 EET");
t.equal(moment("1992-03-28T23:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1992-03-28T23:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("1992-03-29T00:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1992-03-29T00:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1992-09-26T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1992-09-26T23:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1992-09-27T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1992-09-27T00:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"1993" : function (t) {
t.equal(moment("1993-03-27T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1993-03-27T23:59:59+00:00 should be 01:59:59 EET");
t.equal(moment("1993-03-28T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1993-03-28T00:00:00+00:00 should be 03:00:00 EEST");
t.equal(moment("1993-09-25T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1993-09-25T23:59:59+00:00 should be 02:59:59 EEST");
t.equal(moment("1993-09-26T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1993-09-26T00:00:00+00:00 should be 02:00:00 EET");
t.equal(moment("1993-03-27T23:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1993-03-27T23:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("1993-03-28T00:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1993-03-28T00:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1993-09-25T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1993-09-25T23:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1993-09-26T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1993-09-26T00:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"1994" : function (t) {
t.equal(moment("1994-03-26T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1994-03-26T23:59:59+00:00 should be 01:59:59 EET");
t.equal(moment("1994-03-27T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1994-03-27T00:00:00+00:00 should be 03:00:00 EEST");
t.equal(moment("1994-09-24T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1994-09-24T23:59:59+00:00 should be 02:59:59 EEST");
t.equal(moment("1994-09-25T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1994-09-25T00:00:00+00:00 should be 02:00:00 EET");
t.equal(moment("1994-03-26T23:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1994-03-26T23:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("1994-03-27T00:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1994-03-27T00:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1994-09-24T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1994-09-24T23:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1994-09-25T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1994-09-25T00:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"1995" : function (t) {
t.equal(moment("1995-03-25T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1995-03-25T23:59:59+00:00 should be 01:59:59 EET");
t.equal(moment("1995-03-26T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1995-03-26T00:00:00+00:00 should be 03:00:00 EEST");
t.equal(moment("1995-09-23T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1995-09-23T23:59:59+00:00 should be 02:59:59 EEST");
t.equal(moment("1995-09-24T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1995-09-24T00:00:00+00:00 should be 02:00:00 EET");
t.equal(moment("1995-03-25T23:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1995-03-25T23:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("1995-03-26T00:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1995-03-26T00:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1995-09-23T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1995-09-23T23:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1995-09-24T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1995-09-24T00:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"1996" : function (t) {
t.equal(moment("1996-03-30T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1996-03-30T23:59:59+00:00 should be 01:59:59 EET");
t.equal(moment("1996-03-31T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1996-03-31T00:00:00+00:00 should be 03:00:00 EEST");
t.equal(moment("1996-10-26T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1996-10-26T23:59:59+00:00 should be 02:59:59 EEST");
t.equal(moment("1996-10-27T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1996-10-27T00:00:00+00:00 should be 02:00:00 EET");
t.equal(moment("1996-03-30T23:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1996-03-30T23:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("1996-03-31T00:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1996-03-31T00:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1996-10-26T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1996-10-26T23:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1996-10-27T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1996-10-27T00:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"1997" : function (t) {
t.equal(moment("1997-03-29T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "01:59:59", "1997-03-29T23:59:59+00:00 should be 01:59:59 EET");
t.equal(moment("1997-03-30T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "1997-03-30T00:00:00+00:00 should be 03:00:00 EEST");
t.equal(moment("1997-10-25T23:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1997-10-25T23:59:59+00:00 should be 02:59:59 EEST");
t.equal(moment("1997-10-26T00:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:00:00", "1997-10-26T00:00:00+00:00 should be 02:00:00 EET");
t.equal(moment("1997-03-29T23:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "1997-03-29T23:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("1997-03-30T00:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "1997-03-30T00:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1997-10-25T23:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "1997-10-25T23:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("1997-10-26T00:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "1997-10-26T00:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"1998" : function (t) {
t.equal(moment("1998-03-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "1998-03-29T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").zone(), -120, "1998-03-29T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("1998-03-29T01:00:00+00:00").tz("Europe/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").format("HH:mm:ss"), "03:00:00", "1999-10-31T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("1999-03-28T00:59:59+00:00").tz("Europe/Vilnius").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/Vilnius").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/Vilnius").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/Vilnius").zone(), -120, "1999-10-31T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2003" : function (t) {
t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2003-03-30T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2003-03-30T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2003-10-26T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2003-10-26T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2003-03-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2003-03-30T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2003-03-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2003-03-30T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2003-10-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2003-10-26T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2003-10-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2003-10-26T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2004" : function (t) {
t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2004-03-28T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2004-03-28T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2004-10-31T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2004-10-31T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2004-03-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2004-03-28T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2004-03-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2004-03-28T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2004-10-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2004-10-31T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2004-10-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2004-10-31T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2005" : function (t) {
t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2005-03-27T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2005-03-27T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2005-10-30T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2005-10-30T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2005-03-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2005-03-27T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2005-03-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2005-03-27T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2005-10-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2005-10-30T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2005-10-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2005-10-30T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2006" : function (t) {
t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2006-03-26T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2006-03-26T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2006-10-29T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2006-10-29T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2006-03-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2006-03-26T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2006-03-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2006-03-26T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2006-10-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2006-10-29T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2006-10-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2006-10-29T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2007" : function (t) {
t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2007-03-25T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2007-03-25T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2007-10-28T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2007-10-28T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2007-03-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2007-03-25T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2007-03-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2007-03-25T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2007-10-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2007-10-28T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2007-10-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2007-10-28T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2008" : function (t) {
t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2008-03-30T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2008-03-30T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2008-10-26T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2008-10-26T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2008-03-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2008-03-30T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2008-03-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2008-03-30T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2008-10-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2008-10-26T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2008-10-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2008-10-26T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2009" : function (t) {
t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2009-03-29T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2009-03-29T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2009-10-25T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2009-10-25T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2009-03-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2009-03-29T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2009-03-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2009-03-29T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2009-10-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2009-10-25T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2009-10-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2009-10-25T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2010" : function (t) {
t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2010-03-28T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2010-03-28T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2010-10-31T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2010-10-31T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2010-03-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2010-03-28T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2010-03-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2010-03-28T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2010-10-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2010-10-31T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2010-10-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2010-10-31T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2011" : function (t) {
t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2011-03-27T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2011-03-27T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2011-10-30T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2011-10-30T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2011-03-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2011-03-27T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2011-03-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2011-03-27T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2011-10-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2011-10-30T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2011-10-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2011-10-30T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2012" : function (t) {
t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2012-03-25T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2012-03-25T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2012-10-28T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2012-10-28T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2012-03-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2012-03-25T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2012-03-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2012-03-25T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2012-10-28T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2012-10-28T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2012-10-28T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2012-10-28T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2013" : function (t) {
t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2013-03-31T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2013-03-31T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2013-10-27T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2013-10-27T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2013-03-31T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2013-03-31T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2013-03-31T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2013-03-31T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2013-10-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2013-10-27T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2013-10-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2013-10-27T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2014" : function (t) {
t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2014-03-30T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2014-03-30T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2014-10-26T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2014-10-26T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2014-03-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2014-03-30T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2014-03-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2014-03-30T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2014-10-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2014-10-26T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2014-10-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2014-10-26T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2015" : function (t) {
t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2015-03-29T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2015-03-29T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2015-10-25T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2015-10-25T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2015-03-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2015-03-29T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2015-03-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2015-03-29T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2015-10-25T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2015-10-25T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2015-10-25T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2015-10-25T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2016" : function (t) {
t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2016-03-27T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2016-03-27T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2016-10-30T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2016-10-30T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2016-03-27T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2016-03-27T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2016-03-27T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2016-03-27T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2016-10-30T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2016-10-30T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2016-10-30T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2016-10-30T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2017" : function (t) {
t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2017-03-26T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2017-03-26T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2017-10-29T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:00:00", "2017-10-29T01:00:00+00:00 should be 03:00:00 EET");
t.equal(moment("2017-03-26T00:59:59+00:00").tz("Europe/Vilnius").zone(), -120, "2017-03-26T00:59:59+00:00 should be -120 minutes offset in EET");
t.equal(moment("2017-03-26T01:00:00+00:00").tz("Europe/Vilnius").zone(), -180, "2017-03-26T01:00:00+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2017-10-29T00:59:59+00:00").tz("Europe/Vilnius").zone(), -180, "2017-10-29T00:59:59+00:00 should be -180 minutes offset in EEST");
t.equal(moment("2017-10-29T01:00:00+00:00").tz("Europe/Vilnius").zone(), -120, "2017-10-29T01:00:00+00:00 should be -120 minutes offset in EET");
t.done();
},
"2018" : function (t) {
t.equal(moment("2018-03-25T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "02:59:59", "2018-03-25T00:59:59+00:00 should be 02:59:59 EET");
t.equal(moment("2018-03-25T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "04:00:00", "2018-03-25T01:00:00+00:00 should be 04:00:00 EEST");
t.equal(moment("2018-10-28T00:59:59+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03:59:59", "2018-10-28T00:59:59+00:00 should be 03:59:59 EEST");
t.equal(moment("2018-10-28T01:00:00+00:00").tz("Europe/Vilnius").format("HH:mm:ss"), "03