UNPKG

moment-timezone

Version:

Timezone plugin for Moment.js.

470 lines (364 loc) 40.9 kB
var moment = require("../../index"); exports["Europe/Volgograd"] = { "1920" : function (t) { t.equal(moment("1920-01-02T21:02:19+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1920-01-02T21:02:19+00:00 should be 23:59:59 LMT"); t.equal(moment("1920-01-02T21:02:20+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "00:02:20", "1920-01-02T21:02:20+00:00 should be 00:02:20 TSAT"); t.equal(moment("1920-01-02T21:02:19+00:00").tz("Europe/Volgograd").zone(), -10660 / 60, "1920-01-02T21:02:19+00:00 should be -10660 / 60 minutes offset in LMT"); t.equal(moment("1920-01-02T21:02:20+00:00").tz("Europe/Volgograd").zone(), -180, "1920-01-02T21:02:20+00:00 should be -180 minutes offset in TSAT"); t.done(); }, "1925" : function (t) { t.equal(moment("1925-04-05T20:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1925-04-05T20:59:59+00:00 should be 23:59:59 TSAT"); t.equal(moment("1925-04-05T21:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "00:00:00", "1925-04-05T21:00:00+00:00 should be 00:00:00 STAT"); t.equal(moment("1925-04-05T20:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1925-04-05T20:59:59+00:00 should be -180 minutes offset in TSAT"); t.equal(moment("1925-04-05T21:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1925-04-05T21:00:00+00:00 should be -180 minutes offset in STAT"); t.done(); }, "1930" : function (t) { t.equal(moment("1930-06-20T20:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1930-06-20T20:59:59+00:00 should be 23:59:59 STAT"); t.equal(moment("1930-06-20T21:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:00:00", "1930-06-20T21:00:00+00:00 should be 01:00:00 STAT"); t.equal(moment("1930-06-20T20:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1930-06-20T20:59:59+00:00 should be -180 minutes offset in STAT"); t.equal(moment("1930-06-20T21:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1930-06-20T21:00:00+00:00 should be -240 minutes offset in STAT"); t.done(); }, "1961" : function (t) { t.equal(moment("1961-11-10T19:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1961-11-10T19:59:59+00:00 should be 23:59:59 STAT"); t.equal(moment("1961-11-10T20:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "00:00:00", "1961-11-10T20:00:00+00:00 should be 00:00:00 VOLT"); t.equal(moment("1961-11-10T19:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1961-11-10T19:59:59+00:00 should be -240 minutes offset in STAT"); t.equal(moment("1961-11-10T20:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1961-11-10T20:00:00+00:00 should be -240 minutes offset in VOLT"); t.done(); }, "1981" : function (t) { t.equal(moment("1981-03-31T19:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1981-03-31T19:59:59+00:00 should be 23:59:59 VOLT"); t.equal(moment("1981-03-31T20:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:00:00", "1981-03-31T20:00:00+00:00 should be 01:00:00 VOLST"); t.equal(moment("1981-09-30T18:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1981-09-30T18:59:59+00:00 should be 23:59:59 VOLST"); t.equal(moment("1981-09-30T19:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:00:00", "1981-09-30T19:00:00+00:00 should be 23:00:00 VOLT"); t.equal(moment("1981-03-31T19:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1981-03-31T19:59:59+00:00 should be -240 minutes offset in VOLT"); t.equal(moment("1981-03-31T20:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1981-03-31T20:00:00+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1981-09-30T18:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1981-09-30T18:59:59+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1981-09-30T19:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1981-09-30T19:00:00+00:00 should be -240 minutes offset in VOLT"); t.done(); }, "1982" : function (t) { t.equal(moment("1982-03-31T19:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1982-03-31T19:59:59+00:00 should be 23:59:59 VOLT"); t.equal(moment("1982-03-31T20:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:00:00", "1982-03-31T20:00:00+00:00 should be 01:00:00 VOLST"); t.equal(moment("1982-09-30T18:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1982-09-30T18:59:59+00:00 should be 23:59:59 VOLST"); t.equal(moment("1982-09-30T19:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:00:00", "1982-09-30T19:00:00+00:00 should be 23:00:00 VOLT"); t.equal(moment("1982-03-31T19:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1982-03-31T19:59:59+00:00 should be -240 minutes offset in VOLT"); t.equal(moment("1982-03-31T20:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1982-03-31T20:00:00+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1982-09-30T18:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1982-09-30T18:59:59+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1982-09-30T19:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1982-09-30T19:00:00+00:00 should be -240 minutes offset in VOLT"); t.done(); }, "1983" : function (t) { t.equal(moment("1983-03-31T19:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1983-03-31T19:59:59+00:00 should be 23:59:59 VOLT"); t.equal(moment("1983-03-31T20:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:00:00", "1983-03-31T20:00:00+00:00 should be 01:00:00 VOLST"); t.equal(moment("1983-09-30T18:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1983-09-30T18:59:59+00:00 should be 23:59:59 VOLST"); t.equal(moment("1983-09-30T19:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:00:00", "1983-09-30T19:00:00+00:00 should be 23:00:00 VOLT"); t.equal(moment("1983-03-31T19:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1983-03-31T19:59:59+00:00 should be -240 minutes offset in VOLT"); t.equal(moment("1983-03-31T20:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1983-03-31T20:00:00+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1983-09-30T18:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1983-09-30T18:59:59+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1983-09-30T19:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1983-09-30T19:00:00+00:00 should be -240 minutes offset in VOLT"); t.done(); }, "1984" : function (t) { t.equal(moment("1984-03-31T19:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "23:59:59", "1984-03-31T19:59:59+00:00 should be 23:59:59 VOLT"); t.equal(moment("1984-03-31T20:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:00:00", "1984-03-31T20:00:00+00:00 should be 01:00:00 VOLST"); t.equal(moment("1984-09-29T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1984-09-29T21:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1984-09-29T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1984-09-29T22:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1984-03-31T19:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1984-03-31T19:59:59+00:00 should be -240 minutes offset in VOLT"); t.equal(moment("1984-03-31T20:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1984-03-31T20:00:00+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1984-09-29T21:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1984-09-29T21:59:59+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1984-09-29T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1984-09-29T22:00:00+00:00 should be -240 minutes offset in VOLT"); t.done(); }, "1985" : function (t) { t.equal(moment("1985-03-30T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1985-03-30T21:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1985-03-30T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1985-03-30T22:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("1985-09-28T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1985-09-28T21:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1985-09-28T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1985-09-28T22:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1985-03-30T21:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1985-03-30T21:59:59+00:00 should be -240 minutes offset in VOLT"); t.equal(moment("1985-03-30T22:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1985-03-30T22:00:00+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1985-09-28T21:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1985-09-28T21:59:59+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1985-09-28T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1985-09-28T22:00:00+00:00 should be -240 minutes offset in VOLT"); t.done(); }, "1986" : function (t) { t.equal(moment("1986-03-29T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1986-03-29T21:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1986-03-29T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1986-03-29T22:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("1986-09-27T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1986-09-27T21:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1986-09-27T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1986-09-27T22:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1986-03-29T21:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1986-03-29T21:59:59+00:00 should be -240 minutes offset in VOLT"); t.equal(moment("1986-03-29T22:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1986-03-29T22:00:00+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1986-09-27T21:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1986-09-27T21:59:59+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1986-09-27T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1986-09-27T22:00:00+00:00 should be -240 minutes offset in VOLT"); t.done(); }, "1987" : function (t) { t.equal(moment("1987-03-28T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1987-03-28T21:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1987-03-28T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1987-03-28T22:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("1987-09-26T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1987-09-26T21:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1987-09-26T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1987-09-26T22:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1987-03-28T21:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1987-03-28T21:59:59+00:00 should be -240 minutes offset in VOLT"); t.equal(moment("1987-03-28T22:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1987-03-28T22:00:00+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1987-09-26T21:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1987-09-26T21:59:59+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1987-09-26T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1987-09-26T22:00:00+00:00 should be -240 minutes offset in VOLT"); t.done(); }, "1988" : function (t) { t.equal(moment("1988-03-26T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1988-03-26T21:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1988-03-26T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1988-03-26T22:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("1988-09-24T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1988-09-24T21:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1988-09-24T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1988-09-24T22:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1988-03-26T21:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1988-03-26T21:59:59+00:00 should be -240 minutes offset in VOLT"); t.equal(moment("1988-03-26T22:00:00+00:00").tz("Europe/Volgograd").zone(), -300, "1988-03-26T22:00:00+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1988-09-24T21:59:59+00:00").tz("Europe/Volgograd").zone(), -300, "1988-09-24T21:59:59+00:00 should be -300 minutes offset in VOLST"); t.equal(moment("1988-09-24T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1988-09-24T22:00:00+00:00 should be -240 minutes offset in VOLT"); t.done(); }, "1989" : function (t) { t.equal(moment("1989-03-25T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1989-03-25T21:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1989-03-25T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1989-03-25T22:00:00+00:00 should be 02:00:00 VOLST"); t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1989-09-23T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1989-09-23T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1989-03-25T21:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1989-03-25T21:59:59+00:00 should be -240 minutes offset in VOLT"); t.equal(moment("1989-03-25T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1989-03-25T22:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1989-09-23T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1989-09-23T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1989-09-23T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1989-09-23T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "1990" : function (t) { t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1990-03-24T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1990-03-24T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1990-09-29T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1990-09-29T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1990-03-24T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1990-03-24T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("1990-03-24T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1990-03-24T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1990-09-29T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1990-09-29T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1990-09-29T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1990-09-29T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "1991" : function (t) { t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1991-03-30T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1991-03-30T23:00:00+00:00 should be 03:00:00 VOLT"); t.equal(moment("1991-03-30T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1991-03-30T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("1991-03-30T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1991-03-30T23:00:00+00:00 should be -240 minutes offset in VOLT"); t.done(); }, "1992" : function (t) { t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1992-03-28T21:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1992-03-28T22:00:00+00:00 should be 02:00:00 VOLST"); t.equal(moment("1992-09-26T18:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "22:59:59", "1992-09-26T18:59:59+00:00 should be 22:59:59 VOLST"); t.equal(moment("1992-09-26T19:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "22:00:00", "1992-09-26T19:00:00+00:00 should be 22:00:00 VOLT"); t.equal(moment("1992-03-28T21:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1992-03-28T21:59:59+00:00 should be -240 minutes offset in VOLT"); t.equal(moment("1992-03-28T22:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1992-03-28T22:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1992-09-26T18:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1992-09-26T18:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1992-09-26T19:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1992-09-26T19:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "1993" : function (t) { t.equal(moment("1993-03-27T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1993-03-27T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1993-03-27T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1993-03-27T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("1993-09-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1993-09-25T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1993-09-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1993-09-25T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1993-03-27T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1993-03-27T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("1993-03-27T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1993-03-27T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1993-09-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1993-09-25T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1993-09-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1993-09-25T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "1994" : function (t) { t.equal(moment("1994-03-26T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1994-03-26T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1994-03-26T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1994-03-26T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("1994-09-24T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1994-09-24T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1994-09-24T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1994-09-24T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1994-03-26T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1994-03-26T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("1994-03-26T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1994-03-26T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1994-09-24T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1994-09-24T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1994-09-24T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1994-09-24T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "1995" : function (t) { t.equal(moment("1995-03-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1995-03-25T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1995-03-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1995-03-25T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("1995-09-23T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1995-09-23T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1995-09-23T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1995-09-23T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1995-03-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1995-03-25T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("1995-03-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1995-03-25T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1995-09-23T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1995-09-23T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1995-09-23T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1995-09-23T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "1996" : function (t) { t.equal(moment("1996-03-30T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1996-03-30T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1996-03-30T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1996-03-30T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("1996-10-26T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1996-10-26T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1996-10-26T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1996-10-26T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1996-03-30T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1996-03-30T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("1996-03-30T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1996-03-30T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1996-10-26T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1996-10-26T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1996-10-26T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1996-10-26T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "1997" : function (t) { t.equal(moment("1997-03-29T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1997-03-29T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1997-03-29T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1997-03-29T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("1997-10-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1997-10-25T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1997-10-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1997-10-25T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1997-03-29T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1997-03-29T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("1997-03-29T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1997-03-29T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1997-10-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1997-10-25T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1997-10-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1997-10-25T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "1998" : function (t) { t.equal(moment("1998-03-28T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1998-03-28T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1998-03-28T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1998-03-28T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("1998-10-24T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1998-10-24T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1998-10-24T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1998-10-24T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1998-03-28T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1998-03-28T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("1998-03-28T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1998-03-28T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1998-10-24T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1998-10-24T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1998-10-24T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1998-10-24T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "1999" : function (t) { t.equal(moment("1999-03-27T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "1999-03-27T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("1999-03-27T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "1999-03-27T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("1999-10-30T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "1999-10-30T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("1999-10-30T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "1999-10-30T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("1999-03-27T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "1999-03-27T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("1999-03-27T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "1999-03-27T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1999-10-30T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "1999-10-30T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("1999-10-30T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "1999-10-30T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "2000" : function (t) { t.equal(moment("2000-03-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2000-03-25T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("2000-03-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2000-03-25T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("2000-10-28T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2000-10-28T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("2000-10-28T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2000-10-28T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("2000-03-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2000-03-25T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("2000-03-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2000-03-25T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2000-10-28T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2000-10-28T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2000-10-28T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2000-10-28T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "2001" : function (t) { t.equal(moment("2001-03-24T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2001-03-24T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("2001-03-24T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2001-03-24T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("2001-10-27T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2001-10-27T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("2001-10-27T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2001-10-27T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("2001-03-24T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2001-03-24T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("2001-03-24T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2001-03-24T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2001-10-27T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2001-10-27T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2001-10-27T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2001-10-27T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "2002" : function (t) { t.equal(moment("2002-03-30T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2002-03-30T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("2002-03-30T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2002-03-30T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("2002-10-26T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2002-10-26T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("2002-10-26T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2002-10-26T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("2002-03-30T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2002-03-30T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("2002-03-30T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2002-03-30T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2002-10-26T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2002-10-26T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2002-10-26T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2002-10-26T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "2003" : function (t) { t.equal(moment("2003-03-29T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2003-03-29T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("2003-03-29T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2003-03-29T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("2003-10-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2003-10-25T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("2003-10-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2003-10-25T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("2003-03-29T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2003-03-29T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("2003-03-29T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2003-03-29T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2003-10-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2003-10-25T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2003-10-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2003-10-25T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "2004" : function (t) { t.equal(moment("2004-03-27T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2004-03-27T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("2004-03-27T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2004-03-27T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("2004-10-30T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2004-10-30T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("2004-10-30T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2004-10-30T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("2004-03-27T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2004-03-27T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("2004-03-27T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2004-03-27T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2004-10-30T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2004-10-30T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2004-10-30T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2004-10-30T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "2005" : function (t) { t.equal(moment("2005-03-26T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2005-03-26T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("2005-03-26T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2005-03-26T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("2005-10-29T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2005-10-29T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("2005-10-29T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2005-10-29T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("2005-03-26T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2005-03-26T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("2005-03-26T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2005-03-26T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2005-10-29T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2005-10-29T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2005-10-29T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2005-10-29T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "2006" : function (t) { t.equal(moment("2006-03-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2006-03-25T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("2006-03-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2006-03-25T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("2006-10-28T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2006-10-28T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("2006-10-28T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2006-10-28T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("2006-03-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2006-03-25T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("2006-03-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2006-03-25T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2006-10-28T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2006-10-28T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2006-10-28T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2006-10-28T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "2007" : function (t) { t.equal(moment("2007-03-24T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2007-03-24T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("2007-03-24T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2007-03-24T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("2007-10-27T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2007-10-27T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("2007-10-27T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2007-10-27T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("2007-03-24T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2007-03-24T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("2007-03-24T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2007-03-24T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2007-10-27T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2007-10-27T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2007-10-27T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2007-10-27T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "2008" : function (t) { t.equal(moment("2008-03-29T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2008-03-29T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("2008-03-29T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2008-03-29T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("2008-10-25T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2008-10-25T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("2008-10-25T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2008-10-25T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("2008-03-29T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2008-03-29T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("2008-03-29T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2008-03-29T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2008-10-25T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2008-10-25T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2008-10-25T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2008-10-25T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "2009" : function (t) { t.equal(moment("2009-03-28T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2009-03-28T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("2009-03-28T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2009-03-28T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("2009-10-24T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2009-10-24T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("2009-10-24T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2009-10-24T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("2009-03-28T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2009-03-28T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("2009-03-28T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2009-03-28T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2009-10-24T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2009-10-24T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2009-10-24T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2009-10-24T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "2010" : function (t) { t.equal(moment("2010-03-27T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2010-03-27T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("2010-03-27T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2010-03-27T23:00:00+00:00 should be 03:00:00 VOLST"); t.equal(moment("2010-10-30T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:59:59", "2010-10-30T22:59:59+00:00 should be 02:59:59 VOLST"); t.equal(moment("2010-10-30T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "02:00:00", "2010-10-30T23:00:00+00:00 should be 02:00:00 VOLT"); t.equal(moment("2010-03-27T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2010-03-27T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("2010-03-27T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2010-03-27T23:00:00+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2010-10-30T22:59:59+00:00").tz("Europe/Volgograd").zone(), -240, "2010-10-30T22:59:59+00:00 should be -240 minutes offset in VOLST"); t.equal(moment("2010-10-30T23:00:00+00:00").tz("Europe/Volgograd").zone(), -180, "2010-10-30T23:00:00+00:00 should be -180 minutes offset in VOLT"); t.done(); }, "2011" : function (t) { t.equal(moment("2011-03-26T22:59:59+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "01:59:59", "2011-03-26T22:59:59+00:00 should be 01:59:59 VOLT"); t.equal(moment("2011-03-26T23:00:00+00:00").tz("Europe/Volgograd").format("HH:mm:ss"), "03:00:00", "2011-03-26T23:00:00+00:00 should be 03:00:00 VOLT"); t.equal(moment("2011-03-26T22:59:59+00:00").tz("Europe/Volgograd").zone(), -180, "2011-03-26T22:59:59+00:00 should be -180 minutes offset in VOLT"); t.equal(moment("2011-03-26T23:00:00+00:00").tz("Europe/Volgograd").zone(), -240, "2011-03-26T23:00:00+00:00 should be -240 minutes offset in VOLT"); t.done(); } };