UNPKG

moment-timezone

Version:

Timezone plugin for Moment.js.

564 lines (442 loc) 116 kB
var moment = require("../../index"); exports["America/Winnipeg"] = { "1916" : function (t) { t.equal(moment("1916-04-23T05:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "23:59:59", "1916-04-23T05:59:59+00:00 should be 23:59:59 CST"); t.equal(moment("1916-04-23T06:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1916-04-23T06:00:00+00:00 should be 01:00:00 CDT"); t.equal(moment("1916-09-17T04:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "23:59:59", "1916-09-17T04:59:59+00:00 should be 23:59:59 CDT"); t.equal(moment("1916-09-17T05:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "23:00:00", "1916-09-17T05:00:00+00:00 should be 23:00:00 CST"); t.equal(moment("1916-04-23T05:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1916-04-23T05:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1916-04-23T06:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1916-04-23T06:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1916-09-17T04:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1916-09-17T04:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1916-09-17T05:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1916-09-17T05:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1918" : function (t) { t.equal(moment("1918-04-14T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1918-04-14T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1918-04-14T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1918-04-14T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1918-10-27T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1918-10-27T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1918-04-14T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1918-04-14T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1918-04-14T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1918-04-14T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1918-10-27T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1918-10-27T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1918-10-27T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1918-10-27T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1937" : function (t) { t.equal(moment("1937-05-16T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1937-05-16T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1937-05-16T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1937-05-16T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1937-09-26T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1937-09-26T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1937-09-26T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1937-09-26T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1937-05-16T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1937-05-16T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1937-05-16T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1937-05-16T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1937-09-26T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1937-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1937-09-26T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1937-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1942" : function (t) { t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1942-02-09T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1942-02-09T08:00:00+00:00 should be 03:00:00 CWT"); t.equal(moment("1942-02-09T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1942-02-09T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1942-02-09T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1942-02-09T08:00:00+00:00 should be 300 minutes offset in CWT"); t.done(); }, "1945" : function (t) { t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "17:59:59", "1945-08-14T22:59:59+00:00 should be 17:59:59 CWT"); t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "18:00:00", "1945-08-14T23:00:00+00:00 should be 18:00:00 CPT"); t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1945-09-30T06:59:59+00:00 should be 01:59:59 CPT"); t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1945-09-30T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1945-08-14T22:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1945-08-14T22:59:59+00:00 should be 300 minutes offset in CWT"); t.equal(moment("1945-08-14T23:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1945-08-14T23:00:00+00:00 should be 300 minutes offset in CPT"); t.equal(moment("1945-09-30T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1945-09-30T06:59:59+00:00 should be 300 minutes offset in CPT"); t.equal(moment("1945-09-30T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1945-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1946" : function (t) { t.equal(moment("1946-05-12T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1946-05-12T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1946-05-12T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1946-05-12T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1946-10-13T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1946-10-13T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1946-10-13T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1946-10-13T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1946-05-12T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1946-05-12T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1946-05-12T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1946-05-12T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1946-10-13T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1946-10-13T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1946-10-13T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1946-10-13T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1947" : function (t) { t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1947-04-27T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1947-04-27T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1947-09-28T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1947-09-28T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1947-09-28T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1947-09-28T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1947-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1947-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1947-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1947-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1947-09-28T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1947-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1947-09-28T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1947-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1948" : function (t) { t.equal(moment("1948-04-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1948-04-25T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1948-04-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1948-04-25T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1948-09-26T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1948-09-26T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1948-09-26T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1948-09-26T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1948-04-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1948-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1948-04-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1948-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1948-09-26T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1948-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1948-09-26T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1948-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1949" : function (t) { t.equal(moment("1949-04-24T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1949-04-24T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1949-04-24T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1949-04-24T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1949-09-25T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1949-09-25T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1949-09-25T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1949-09-25T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1949-04-24T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1949-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1949-04-24T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1949-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1949-09-25T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1949-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1949-09-25T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1949-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1950" : function (t) { t.equal(moment("1950-05-01T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1950-05-01T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1950-05-01T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1950-05-01T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1950-09-30T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1950-09-30T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1950-09-30T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1950-09-30T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1950-05-01T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1950-05-01T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1950-05-01T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1950-05-01T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1950-09-30T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1950-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1950-09-30T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1950-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1951" : function (t) { t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1951-04-29T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1951-04-29T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1951-09-30T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1951-09-30T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1951-04-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1951-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1951-04-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1951-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1951-09-30T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1951-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1951-09-30T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1951-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1952" : function (t) { t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1952-04-27T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1952-04-27T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1952-09-28T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1952-09-28T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1952-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1952-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1952-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1952-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1952-09-28T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1952-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1952-09-28T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1952-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1953" : function (t) { t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1953-04-26T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1953-04-26T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1953-09-27T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1953-09-27T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1953-04-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1953-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1953-04-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1953-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1953-09-27T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1953-09-27T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1953-09-27T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1953-09-27T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1954" : function (t) { t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1954-04-25T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1954-04-25T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1954-09-26T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1954-09-26T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1954-04-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1954-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1954-04-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1954-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1954-09-26T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1954-09-26T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1954-09-26T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1954-09-26T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1955" : function (t) { t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1955-04-24T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1955-04-24T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1955-09-25T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1955-09-25T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1955-04-24T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1955-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1955-04-24T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1955-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1955-09-25T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1955-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1955-09-25T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1955-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1956" : function (t) { t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1956-04-29T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1956-04-29T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1956-09-30T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1956-09-30T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1956-09-30T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1956-09-30T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1956-04-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1956-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1956-04-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1956-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1956-09-30T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1956-09-30T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1956-09-30T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1956-09-30T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1957" : function (t) { t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1957-04-28T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1957-04-28T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1957-09-29T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1957-09-29T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1957-04-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1957-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1957-04-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1957-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1957-09-29T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1957-09-29T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1957-09-29T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1957-09-29T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1958" : function (t) { t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1958-04-27T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1958-04-27T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1958-09-28T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1958-09-28T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1958-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1958-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1958-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1958-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1958-09-28T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1958-09-28T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1958-09-28T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1958-09-28T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1959" : function (t) { t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1959-04-26T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1959-04-26T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1959-10-25T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1959-10-25T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1959-10-25T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1959-10-25T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1959-04-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1959-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1959-04-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1959-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1959-10-25T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1959-10-25T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1959-10-25T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1959-10-25T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1960" : function (t) { t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1960-04-24T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1960-04-24T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1960-09-25T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1960-09-25T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1960-09-25T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1960-09-25T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1960-04-24T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1960-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1960-04-24T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1960-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1960-09-25T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1960-09-25T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1960-09-25T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1960-09-25T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1963" : function (t) { t.equal(moment("1963-04-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1963-04-28T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1963-04-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1963-04-28T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1963-09-22T06:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1963-09-22T06:59:59+00:00 should be 01:59:59 CDT"); t.equal(moment("1963-09-22T07:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:00:00", "1963-09-22T07:00:00+00:00 should be 01:00:00 CST"); t.equal(moment("1963-04-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1963-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1963-04-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1963-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1963-09-22T06:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1963-09-22T06:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1963-09-22T07:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1963-09-22T07:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1966" : function (t) { t.equal(moment("1966-04-24T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1966-04-24T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1966-04-24T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1966-04-24T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1966-10-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1966-10-30T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1966-10-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1966-10-30T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1966-04-24T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1966-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1966-04-24T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1966-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1966-10-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1966-10-30T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1966-10-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1966-10-30T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1967" : function (t) { t.equal(moment("1967-04-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1967-04-30T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1967-04-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1967-04-30T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1967-10-29T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1967-10-29T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1967-04-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1967-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1967-04-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1967-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1967-10-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1967-10-29T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1967-10-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1967-10-29T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1968" : function (t) { t.equal(moment("1968-04-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1968-04-28T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1968-04-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1968-04-28T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1968-10-27T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1968-10-27T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1968-04-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1968-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1968-04-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1968-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1968-10-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1968-10-27T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1968-10-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1968-10-27T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1969" : function (t) { t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1969-04-27T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1969-04-27T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1969-10-26T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1969-10-26T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1969-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1969-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1969-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1969-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1969-10-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1969-10-26T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1969-10-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1969-10-26T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1970" : function (t) { t.equal(moment("1970-04-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1970-04-26T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1970-04-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1970-04-26T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1970-10-25T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1970-10-25T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1970-04-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1970-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1970-04-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1970-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1970-10-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1970-10-25T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1970-10-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1970-10-25T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1971" : function (t) { t.equal(moment("1971-04-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1971-04-25T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1971-04-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1971-04-25T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1971-10-31T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1971-10-31T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1971-04-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1971-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1971-04-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1971-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1971-10-31T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1971-10-31T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1971-10-31T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1971-10-31T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1972" : function (t) { t.equal(moment("1972-04-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1972-04-30T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1972-04-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1972-04-30T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1972-10-29T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1972-10-29T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1972-04-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1972-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1972-04-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1972-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1972-10-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1972-10-29T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1972-10-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1972-10-29T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1973" : function (t) { t.equal(moment("1973-04-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1973-04-29T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1973-04-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1973-04-29T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1973-10-28T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1973-10-28T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1973-04-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1973-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1973-04-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1973-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1973-10-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1973-10-28T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1973-10-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1973-10-28T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1974" : function (t) { t.equal(moment("1974-04-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1974-04-28T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1974-04-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1974-04-28T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1974-10-27T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1974-10-27T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1974-04-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1974-04-28T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1974-04-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1974-04-28T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1974-10-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1974-10-27T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1974-10-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1974-10-27T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1975" : function (t) { t.equal(moment("1975-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1975-04-27T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1975-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1975-04-27T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1975-10-26T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1975-10-26T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1975-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1975-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1975-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1975-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1975-10-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1975-10-26T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1975-10-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1975-10-26T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1976" : function (t) { t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1976-04-25T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1976-04-25T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1976-10-31T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1976-10-31T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1976-04-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1976-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1976-04-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1976-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1976-10-31T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1976-10-31T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1976-10-31T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1976-10-31T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1977" : function (t) { t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1977-04-24T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1977-04-24T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1977-10-30T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1977-10-30T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1977-04-24T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1977-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1977-04-24T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1977-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1977-10-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1977-10-30T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1977-10-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1977-10-30T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1978" : function (t) { t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1978-04-30T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1978-04-30T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1978-10-29T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1978-10-29T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1978-04-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1978-04-30T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1978-04-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1978-04-30T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1978-10-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1978-10-29T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1978-10-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1978-10-29T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1979" : function (t) { t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1979-04-29T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1979-04-29T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1979-10-28T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1979-10-28T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1979-04-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1979-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1979-04-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1979-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1979-10-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1979-10-28T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1979-10-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1979-10-28T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1980" : function (t) { t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1980-04-27T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1980-04-27T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1980-10-26T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1980-10-26T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1980-04-27T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1980-04-27T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1980-04-27T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1980-04-27T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1980-10-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1980-10-26T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1980-10-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1980-10-26T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1981" : function (t) { t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1981-04-26T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1981-04-26T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1981-10-25T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1981-10-25T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1981-04-26T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1981-04-26T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1981-04-26T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1981-04-26T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1981-10-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1981-10-25T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1981-10-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1981-10-25T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1982" : function (t) { t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1982-04-25T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1982-04-25T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1982-10-31T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1982-10-31T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1982-04-25T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1982-04-25T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1982-04-25T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1982-04-25T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1982-10-31T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1982-10-31T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1982-10-31T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1982-10-31T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1983" : function (t) { t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1983-04-24T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1983-04-24T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1983-10-30T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1983-10-30T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1983-04-24T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1983-04-24T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1983-04-24T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1983-04-24T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1983-10-30T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1983-10-30T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1983-10-30T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1983-10-30T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1984" : function (t) { t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1984-04-29T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1984-04-29T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1984-10-28T07:59:59+00:00 should be 02:59:59 CDT"); t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:00:00", "1984-10-28T08:00:00+00:00 should be 02:00:00 CST"); t.equal(moment("1984-04-29T07:59:59+00:00").tz("America/Winnipeg").zone(), 360, "1984-04-29T07:59:59+00:00 should be 360 minutes offset in CST"); t.equal(moment("1984-04-29T08:00:00+00:00").tz("America/Winnipeg").zone(), 300, "1984-04-29T08:00:00+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1984-10-28T07:59:59+00:00").tz("America/Winnipeg").zone(), 300, "1984-10-28T07:59:59+00:00 should be 300 minutes offset in CDT"); t.equal(moment("1984-10-28T08:00:00+00:00").tz("America/Winnipeg").zone(), 360, "1984-10-28T08:00:00+00:00 should be 360 minutes offset in CST"); t.done(); }, "1985" : function (t) { t.equal(moment("1985-04-28T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "01:59:59", "1985-04-28T07:59:59+00:00 should be 01:59:59 CST"); t.equal(moment("1985-04-28T08:00:00+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "03:00:00", "1985-04-28T08:00:00+00:00 should be 03:00:00 CDT"); t.equal(moment("1985-10-27T07:59:59+00:00").tz("America/Winnipeg").format("HH:mm:ss"), "02:59:59", "1985-10-27T07:59:5