moment-timezone
Version:
Timezone plugin for Moment.js.
565 lines (443 loc) • 73.1 kB
JavaScript
var moment = require("../../index");
exports["America/Godthab"] = {
"1916" : function (t) {
t.equal(moment("1916-07-28T03:26:55+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:59:59", "1916-07-28T03:26:55+00:00 should be 23:59:59 LMT");
t.equal(moment("1916-07-28T03:26:56+00:00").tz("America/Godthab").format("HH:mm:ss"), "00:26:56", "1916-07-28T03:26:56+00:00 should be 00:26:56 WGT");
t.equal(moment("1916-07-28T03:26:55+00:00").tz("America/Godthab").zone(), 12416 / 60, "1916-07-28T03:26:55+00:00 should be 12416 / 60 minutes offset in LMT");
t.equal(moment("1916-07-28T03:26:56+00:00").tz("America/Godthab").zone(), 180, "1916-07-28T03:26:56+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1980" : function (t) {
t.equal(moment("1980-04-06T04:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "01:59:59", "1980-04-06T04:59:59+00:00 should be 01:59:59 WGT");
t.equal(moment("1980-04-06T05:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "03:00:00", "1980-04-06T05:00:00+00:00 should be 03:00:00 WGST");
t.equal(moment("1980-09-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1980-09-28T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1980-09-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1980-09-28T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1980-04-06T04:59:59+00:00").tz("America/Godthab").zone(), 180, "1980-04-06T04:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1980-04-06T05:00:00+00:00").tz("America/Godthab").zone(), 120, "1980-04-06T05:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1980-09-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1980-09-28T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1980-09-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1980-09-28T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1981" : function (t) {
t.equal(moment("1981-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1981-03-29T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1981-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1981-03-29T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1981-09-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1981-09-27T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1981-09-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1981-09-27T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1981-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1981-03-29T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1981-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1981-03-29T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1981-09-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1981-09-27T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1981-09-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1981-09-27T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1982" : function (t) {
t.equal(moment("1982-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1982-03-28T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1982-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1982-03-28T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1982-09-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1982-09-26T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1982-09-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1982-09-26T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1982-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1982-03-28T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1982-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1982-03-28T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1982-09-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1982-09-26T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1982-09-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1982-09-26T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1983" : function (t) {
t.equal(moment("1983-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1983-03-27T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1983-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1983-03-27T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1983-09-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1983-09-25T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1983-09-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1983-09-25T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1983-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1983-03-27T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1983-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1983-03-27T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1983-09-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1983-09-25T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1983-09-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1983-09-25T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1984" : function (t) {
t.equal(moment("1984-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1984-03-25T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1984-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1984-03-25T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1984-09-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1984-09-30T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1984-09-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1984-09-30T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1984-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1984-03-25T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1984-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1984-03-25T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1984-09-30T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1984-09-30T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1984-09-30T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1984-09-30T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1985" : function (t) {
t.equal(moment("1985-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1985-03-31T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1985-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1985-03-31T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1985-09-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1985-09-29T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1985-09-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1985-09-29T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1985-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1985-03-31T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1985-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1985-03-31T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1985-09-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1985-09-29T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1985-09-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1985-09-29T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1986" : function (t) {
t.equal(moment("1986-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1986-03-30T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1986-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1986-03-30T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1986-09-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1986-09-28T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1986-09-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1986-09-28T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1986-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1986-03-30T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1986-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1986-03-30T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1986-09-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1986-09-28T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1986-09-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1986-09-28T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1987" : function (t) {
t.equal(moment("1987-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1987-03-29T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1987-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1987-03-29T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1987-09-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1987-09-27T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1987-09-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1987-09-27T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1987-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1987-03-29T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1987-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1987-03-29T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1987-09-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1987-09-27T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1987-09-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1987-09-27T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1988" : function (t) {
t.equal(moment("1988-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1988-03-27T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1988-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1988-03-27T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1988-09-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1988-09-25T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1988-09-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1988-09-25T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1988-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1988-03-27T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1988-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1988-03-27T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1988-09-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1988-09-25T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1988-09-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1988-09-25T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1989" : function (t) {
t.equal(moment("1989-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1989-03-26T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1989-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1989-03-26T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1989-09-24T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1989-09-24T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1989-09-24T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1989-09-24T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1989-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1989-03-26T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1989-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1989-03-26T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1989-09-24T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1989-09-24T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1989-09-24T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1989-09-24T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1990" : function (t) {
t.equal(moment("1990-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1990-03-25T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1990-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1990-03-25T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1990-09-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1990-09-30T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1990-09-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1990-09-30T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1990-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1990-03-25T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1990-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1990-03-25T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1990-09-30T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1990-09-30T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1990-09-30T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1990-09-30T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1991" : function (t) {
t.equal(moment("1991-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1991-03-31T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1991-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1991-03-31T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1991-09-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1991-09-29T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1991-09-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1991-09-29T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1991-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1991-03-31T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1991-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1991-03-31T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1991-09-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1991-09-29T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1991-09-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1991-09-29T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1992" : function (t) {
t.equal(moment("1992-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1992-03-29T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1992-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1992-03-29T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1992-09-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1992-09-27T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1992-09-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1992-09-27T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1992-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1992-03-29T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1992-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1992-03-29T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1992-09-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1992-09-27T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1992-09-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1992-09-27T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1993" : function (t) {
t.equal(moment("1993-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1993-03-28T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1993-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1993-03-28T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1993-09-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1993-09-26T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1993-09-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1993-09-26T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1993-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1993-03-28T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1993-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1993-03-28T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1993-09-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1993-09-26T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1993-09-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1993-09-26T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1994" : function (t) {
t.equal(moment("1994-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1994-03-27T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1994-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1994-03-27T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1994-09-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1994-09-25T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1994-09-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1994-09-25T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1994-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1994-03-27T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1994-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1994-03-27T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1994-09-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1994-09-25T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1994-09-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1994-09-25T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1995" : function (t) {
t.equal(moment("1995-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1995-03-26T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1995-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1995-03-26T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1995-09-24T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1995-09-24T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1995-09-24T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1995-09-24T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1995-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1995-03-26T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1995-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1995-03-26T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1995-09-24T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1995-09-24T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1995-09-24T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1995-09-24T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1996" : function (t) {
t.equal(moment("1996-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1996-03-31T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1996-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1996-03-31T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1996-10-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1996-10-27T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1996-10-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1996-10-27T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1996-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1996-03-31T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1996-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1996-03-31T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1996-10-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1996-10-27T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1996-10-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1996-10-27T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1997" : function (t) {
t.equal(moment("1997-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1997-03-30T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1997-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1997-03-30T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1997-10-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1997-10-26T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1997-10-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1997-10-26T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1997-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1997-03-30T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1997-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1997-03-30T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1997-10-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1997-10-26T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1997-10-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1997-10-26T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1998" : function (t) {
t.equal(moment("1998-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1998-03-29T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1998-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1998-03-29T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1998-10-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1998-10-25T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1998-10-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1998-10-25T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1998-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1998-03-29T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1998-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1998-03-29T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1998-10-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1998-10-25T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1998-10-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1998-10-25T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"1999" : function (t) {
t.equal(moment("1999-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "1999-03-28T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("1999-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "1999-03-28T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("1999-10-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "1999-10-31T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("1999-10-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "1999-10-31T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("1999-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "1999-03-28T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("1999-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "1999-03-28T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1999-10-31T00:59:59+00:00").tz("America/Godthab").zone(), 120, "1999-10-31T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("1999-10-31T01:00:00+00:00").tz("America/Godthab").zone(), 180, "1999-10-31T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2000" : function (t) {
t.equal(moment("2000-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2000-03-26T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2000-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2000-03-26T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2000-10-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2000-10-29T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2000-10-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2000-10-29T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2000-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2000-03-26T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2000-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2000-03-26T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2000-10-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2000-10-29T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2000-10-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2000-10-29T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2001" : function (t) {
t.equal(moment("2001-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2001-03-25T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2001-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2001-03-25T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2001-10-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2001-10-28T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2001-10-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2001-10-28T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2001-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2001-03-25T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2001-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2001-03-25T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2001-10-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2001-10-28T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2001-10-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2001-10-28T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2002" : function (t) {
t.equal(moment("2002-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2002-03-31T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2002-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2002-03-31T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2002-10-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2002-10-27T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2002-10-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2002-10-27T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2002-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2002-03-31T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2002-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2002-03-31T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2002-10-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2002-10-27T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2002-10-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2002-10-27T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2003" : function (t) {
t.equal(moment("2003-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2003-03-30T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2003-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2003-03-30T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2003-10-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2003-10-26T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2003-10-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2003-10-26T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2003-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2003-03-30T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2003-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2003-03-30T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2003-10-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2003-10-26T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2003-10-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2003-10-26T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2004" : function (t) {
t.equal(moment("2004-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2004-03-28T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2004-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2004-03-28T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2004-10-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2004-10-31T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2004-10-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2004-10-31T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2004-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2004-03-28T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2004-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2004-03-28T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2004-10-31T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2004-10-31T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2004-10-31T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2004-10-31T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2005" : function (t) {
t.equal(moment("2005-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2005-03-27T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2005-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2005-03-27T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2005-10-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2005-10-30T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2005-10-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2005-10-30T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2005-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2005-03-27T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2005-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2005-03-27T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2005-10-30T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2005-10-30T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2005-10-30T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2005-10-30T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2006" : function (t) {
t.equal(moment("2006-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2006-03-26T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2006-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2006-03-26T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2006-10-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2006-10-29T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2006-10-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2006-10-29T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2006-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2006-03-26T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2006-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2006-03-26T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2006-10-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2006-10-29T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2006-10-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2006-10-29T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2007" : function (t) {
t.equal(moment("2007-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2007-03-25T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2007-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2007-03-25T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2007-10-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2007-10-28T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2007-10-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2007-10-28T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2007-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2007-03-25T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2007-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2007-03-25T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2007-10-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2007-10-28T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2007-10-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2007-10-28T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2008" : function (t) {
t.equal(moment("2008-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2008-03-30T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2008-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2008-03-30T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2008-10-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2008-10-26T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2008-10-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2008-10-26T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2008-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2008-03-30T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2008-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2008-03-30T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2008-10-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2008-10-26T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2008-10-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2008-10-26T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2009" : function (t) {
t.equal(moment("2009-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2009-03-29T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2009-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2009-03-29T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2009-10-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2009-10-25T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2009-10-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2009-10-25T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2009-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2009-03-29T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2009-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2009-03-29T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2009-10-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2009-10-25T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2009-10-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2009-10-25T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2010" : function (t) {
t.equal(moment("2010-03-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2010-03-28T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2010-03-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2010-03-28T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2010-10-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2010-10-31T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2010-10-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2010-10-31T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2010-03-28T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2010-03-28T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2010-03-28T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2010-03-28T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2010-10-31T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2010-10-31T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2010-10-31T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2010-10-31T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2011" : function (t) {
t.equal(moment("2011-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2011-03-27T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2011-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2011-03-27T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2011-10-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2011-10-30T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2011-10-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2011-10-30T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2011-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2011-03-27T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2011-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2011-03-27T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2011-10-30T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2011-10-30T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2011-10-30T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2011-10-30T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2012" : function (t) {
t.equal(moment("2012-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2012-03-25T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2012-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2012-03-25T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2012-10-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2012-10-28T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2012-10-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2012-10-28T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2012-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2012-03-25T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2012-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2012-03-25T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2012-10-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2012-10-28T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2012-10-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2012-10-28T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2013" : function (t) {
t.equal(moment("2013-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2013-03-31T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2013-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2013-03-31T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2013-10-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2013-10-27T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2013-10-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2013-10-27T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2013-03-31T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2013-03-31T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2013-03-31T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2013-03-31T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2013-10-27T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2013-10-27T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2013-10-27T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2013-10-27T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2014" : function (t) {
t.equal(moment("2014-03-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2014-03-30T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2014-03-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2014-03-30T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2014-10-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2014-10-26T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2014-10-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2014-10-26T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2014-03-30T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2014-03-30T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2014-03-30T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2014-03-30T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2014-10-26T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2014-10-26T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2014-10-26T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2014-10-26T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2015" : function (t) {
t.equal(moment("2015-03-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2015-03-29T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2015-03-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2015-03-29T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2015-10-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2015-10-25T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2015-10-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2015-10-25T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2015-03-29T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2015-03-29T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2015-03-29T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2015-03-29T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2015-10-25T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2015-10-25T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2015-10-25T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2015-10-25T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2016" : function (t) {
t.equal(moment("2016-03-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2016-03-27T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2016-03-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2016-03-27T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2016-10-30T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2016-10-30T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2016-10-30T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2016-10-30T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2016-03-27T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2016-03-27T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2016-03-27T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2016-03-27T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2016-10-30T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2016-10-30T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2016-10-30T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2016-10-30T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2017" : function (t) {
t.equal(moment("2017-03-26T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2017-03-26T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2017-03-26T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2017-03-26T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2017-10-29T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2017-10-29T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2017-10-29T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2017-10-29T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2017-03-26T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2017-03-26T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2017-03-26T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2017-03-26T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2017-10-29T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2017-10-29T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2017-10-29T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2017-10-29T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2018" : function (t) {
t.equal(moment("2018-03-25T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2018-03-25T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2018-03-25T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2018-03-25T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2018-10-28T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2018-10-28T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2018-10-28T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2018-10-28T01:00:00+00:00 should be 22:00:00 WGT");
t.equal(moment("2018-03-25T00:59:59+00:00").tz("America/Godthab").zone(), 180, "2018-03-25T00:59:59+00:00 should be 180 minutes offset in WGT");
t.equal(moment("2018-03-25T01:00:00+00:00").tz("America/Godthab").zone(), 120, "2018-03-25T01:00:00+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2018-10-28T00:59:59+00:00").tz("America/Godthab").zone(), 120, "2018-10-28T00:59:59+00:00 should be 120 minutes offset in WGST");
t.equal(moment("2018-10-28T01:00:00+00:00").tz("America/Godthab").zone(), 180, "2018-10-28T01:00:00+00:00 should be 180 minutes offset in WGT");
t.done();
},
"2019" : function (t) {
t.equal(moment("2019-03-31T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "21:59:59", "2019-03-31T00:59:59+00:00 should be 21:59:59 WGT");
t.equal(moment("2019-03-31T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "23:00:00", "2019-03-31T01:00:00+00:00 should be 23:00:00 WGST");
t.equal(moment("2019-10-27T00:59:59+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:59:59", "2019-10-27T00:59:59+00:00 should be 22:59:59 WGST");
t.equal(moment("2019-10-27T01:00:00+00:00").tz("America/Godthab").format("HH:mm:ss"), "22:00:00", "2019-10-27T01