Skip to content

A platform for community discussion. Free, open, simple.

DEV: Update moment-timezone to 0.6.1 (#38895)

Jarek Radosz21d3beaf3972
diff --git a/frontend/discourse/package.json b/frontend/discourse/package.json
index b1df3c48050..bf2c5edbef5 100644
--- a/frontend/discourse/package.json
+++ b/frontend/discourse/package.json
@@ -54,7 +54,7 @@
"immer": "^11.1.4",
"jspreadsheet-ce": "^5.0.4",
"moment": "2.30.1",
- "moment-timezone": "0.6.0",
+ "moment-timezone": "0.6.1",
"morphlex": "^1.0.5",
"orderedmap": "^2.1.1",
"photoswipe": "5.4.4",
diff --git a/plugins/discourse-local-dates/test/javascripts/lib/date-with-zone-helper-test.js b/plugins/discourse-local-dates/test/javascripts/lib/date-with-zone-helper-test.js
index a1d2bc39c27..0983775bf28 100644
--- a/plugins/discourse-local-dates/test/javascripts/lib/date-with-zone-helper-test.js
+++ b/plugins/discourse-local-dates/test/javascripts/lib/date-with-zone-helper-test.js
@@ -6,7 +6,7 @@ const SYDNEY = "Australia/Sydney";
function buildDateHelper(params = {}) {
return new DateWithZoneHelper({
- year: params.year || 2020,
+ year: params.year || 2022,
day: params.day || 22,
month: params.month || 2,
hour: params.hour || 10,
@@ -25,7 +25,7 @@ module("lib:date-with-zone-helper", function () {
minute: 36,
timezone: PARIS,
});
- assert.strictEqual(date.format(), "2020-03-15T15:36:00.000+01:00");
+ assert.strictEqual(date.format(), "2022-03-15T15:36:00.000+01:00");
});
test("#unitRepetitionsBetweenDates", function (assert) {
@@ -41,7 +41,7 @@ module("lib:date-with-zone-helper", function () {
assert.strictEqual(
date.unitRepetitionsBetweenDates(
"1.hour",
- moment.tz("2020-02-15 15:36", SYDNEY)
+ moment.tz("2022-02-15 15:36", SYDNEY)
),
10,
"it correctly finds difference between timezones"
@@ -57,7 +57,7 @@ module("lib:date-with-zone-helper", function () {
assert.strictEqual(
date.unitRepetitionsBetweenDates(
"1.minute",
- moment.tz("2020-02-15 15:36", PARIS)
+ moment.tz("2022-02-15 15:36", PARIS)
),
0,
"it correctly finds no difference"
@@ -73,7 +73,7 @@ module("lib:date-with-zone-helper", function () {
assert.strictEqual(
date.unitRepetitionsBetweenDates(
"1.minute",
- moment.tz("2020-02-15 15:37", PARIS)
+ moment.tz("2022-02-15 15:37", PARIS)
),
1,
"it correctly finds no difference"
@@ -89,7 +89,7 @@ module("lib:date-with-zone-helper", function () {
assert.strictEqual(
date.unitRepetitionsBetweenDates(
"2.minutes",
- moment.tz("2020-02-15 15:41", PARIS)
+ moment.tz("2022-02-15 15:41", PARIS)
),
6,
"it correctly finds difference with a multiplicator"
@@ -113,7 +113,7 @@ module("lib:date-with-zone-helper", function () {
assert.false(futureLocalDate.isDST());
assert.strictEqual(
futureLocalDate.format(),
- "2020-11-19T15:36:00.000+01:00",
+ "2022-11-19T15:36:00.000+01:00",
"it correctly adds from a !isDST date to a !isDST date"
);
@@ -129,7 +129,7 @@ module("lib:date-with-zone-helper", function () {
assert.true(futureLocalDate.isDST());
assert.strictEqual(
futureLocalDate.format(),
- "2021-04-25T15:36:00.000+02:00",
+ "2023-04-25T15:36:00.000+02:00",
"it correctly adds from a isDST date to a isDST date"
);
@@ -145,7 +145,7 @@ module("lib:date-with-zone-helper", function () {
assert.true(futureLocalDate.isDST());
assert.strictEqual(
futureLocalDate.format(),
- "2020-04-01T15:36:00.000+02:00",
+ "2022-04-01T15:36:00.000+02:00",
"it correctly adds from a !isDST date to a isDST date"
);
@@ -162,7 +162,7 @@ module("lib:date-with-zone-helper", function () {
assert.false(futureLocalDate.isDST());
assert.strictEqual(
futureLocalDate.format(),
- "2020-12-01T15:36:00.000+01:00",
+ "2022-12-01T15:36:00.000+01:00",
"it correctly adds from a isDST date to a !isDST date"
);
});
diff --git a/plugins/discourse-local-dates/test/javascripts/unit/local-date-builder-test.js b/plugins/discourse-local-dates/test/javascripts/unit/local-date-builder-test.js
index d751a30a210..65321bc0d52 100644
--- a/plugins/discourse-local-dates/test/javascripts/unit/local-date-builder-test.js
+++ b/plugins/discourse-local-dates/test/javascripts/unit/local-date-builder-test.js
@@ -20,7 +20,7 @@ QUnit.assert.buildsCorrectDate = function (options, expected, message) {
Object.assign(
{},
{
- date: "2020-03-22",
+ date: "2022-03-20",
},
options
),
@@ -46,10 +46,10 @@ QUnit.assert.buildsCorrectDate = function (options, expected, message) {
module("Unit | Library | local-date-builder", function () {
test("date", function (assert) {
- freezeTime({ date: "2020-03-11" }, () => {
+ freezeTime({ date: "2022-03-11" }, () => {
assert.buildsCorrectDate(
- { date: "2020-03-22", timezone: PARIS },
- { formatted: "March 22, 2020" },
+ { date: "2022-03-20", timezone: PARIS },
+ { formatted: "March 20, 2022" },
"it displays the date without time"
);
});
@@ -74,13 +74,13 @@ module("Unit | Library | local-date-builder", function () {
test("date and time", function (assert) {
assert.buildsCorrectDate(
- { date: "2020-04-11", time: "11:00" },
- { formatted: "April 11, 2020 1:00 PM" },
+ { date: "2022-04-11", time: "11:00" },
+ { formatted: "April 11, 2022 1:00 PM" },
"it displays the date with time"
);
assert.buildsCorrectDate(
- { date: "2020-04-11", time: "11:05:12", format: "LTS" },
+ { date: "2022-04-11", time: "11:05:12", format: "LTS" },
{ formatted: "1:05:12 PM" },
"it displays full time (hours, minutes, seconds)"
);
@@ -101,10 +101,10 @@ module("Unit | Library | local-date-builder", function () {
});
test("option[format]", function (assert) {
- freezeTime({ date: "2020-03-11" }, () => {
+ freezeTime({ date: "2022-03-11" }, () => {
assert.buildsCorrectDate(
{ format: "YYYY" },
- { formatted: "2020 (UTC)" },
+ { formatted: "2022 (UTC)" },
"it uses custom format"
);
});
@@ -114,7 +114,7 @@ module("Unit | Library | local-date-builder", function () {
freezeTime({}, () => {
assert.buildsCorrectDate(
{ displayedTimezone: SYDNEY },
- { formatted: "March 22, 2020 (Sydney)" },
+ { formatted: "March 20, 2022 (Sydney)" },
"it displays the timezone if the timezone is different from the date"
);
});
@@ -122,7 +122,7 @@ module("Unit | Library | local-date-builder", function () {
freezeTime({}, () => {
assert.buildsCorrectDate(
{ displayedTimezone: PARIS, timezone: PARIS },
- { formatted: "March 22, 2020" },
+ { formatted: "March 20, 2022" },
"it doesn't display the timezone if the timezone is the same than the date"
);
});
@@ -130,7 +130,7 @@ module("Unit | Library | local-date-builder", function () {
freezeTime({}, () => {
assert.buildsCorrectDate(
{ timezone: UTC, displayedTimezone: UTC },
- { formatted: "March 22, 2020 (UTC)" },
+ { formatted: "March 20, 2022 (UTC)" },
"it replaces `Etc/`"
);
});
@@ -138,7 +138,7 @@ module("Unit | Library | local-date-builder", function () {
freezeTime({}, () => {
assert.buildsCorrectDate(
{ timezone: LOS_ANGELES, displayedTimezone: LOS_ANGELES },
- { formatted: "March 22, 2020 (Los Angeles)" },
+ { formatted: "March 20, 2022 (Los Angeles)" },
"it removes prefix and replaces `_`"
);
});
@@ -148,33 +148,33 @@ module("Unit | Library | local-date-builder", function () {
freezeTime({}, () => {
assert.buildsCorrectDate(
{ timezone: SYDNEY, displayedTimezone: PARIS },
- { formatted: "March 21, 2020" },
+ { formatted: "March 19, 2022" },
"it correctly parses a date with the given timezone context"
);
});
});
test("option[recurring]", function (assert) {
- freezeTime({ date: "2020-04-06 06:00", timezone: LAGOS }, () => {
+ freezeTime({ date: "2022-04-04 06:00", timezone: LAGOS }, () => {
assert.buildsCorrectDate(
{
- date: "2019-11-25",
+ date: "2021-11-22",
time: "11:00",
timezone: PARIS,
displayedTimezone: LAGOS,
recurring: "1.weeks",
},
{
- formatted: "April 6, 2020 10:00 AM (Lagos)",
+ formatted: "April 4, 2022 10:00 AM (Lagos)",
},
"it correctly formats a recurring date starting from a !isDST timezone to a isDST timezone date when displayed to a user using a timezone with no DST"
);
});
- freezeTime({ date: "2020-04-06 01:00", timezone: SYDNEY }, () => {
+ freezeTime({ date: "2022-04-04 01:00", timezone: SYDNEY }, () => {
assert.buildsCorrectDate(
{
- date: "2020-03-09",
+ date: "2022-03-07",
time: "02:00",
timezone: UTC,
recurring: "1.weeks",
@@ -182,31 +182,31 @@ module("Unit | Library | local-date-builder", function () {
displayedTimezone: SYDNEY,
},
{
- formatted: "April 6, 2020 12:00 PM (Sydney)",
+ formatted: "April 4, 2022 12:00 PM (Sydney)",
},
"it correctly formats a recurring date spanning over weeks"
);
});
- freezeTime({ date: "2020-04-07 22:00" }, () => {
+ freezeTime({ date: "2022-04-05 22:00" }, () => {
assert.buildsCorrectDate(
{
- date: "2019-11-25",
+ date: "2021-11-22",
time: "11:00",
recurring: "1.weeks",
timezone: PARIS,
},
{
- formatted: "April 13, 2020 11:00 AM",
+ formatted: "April 11, 2022 11:00 AM",
},
"it correctly adds from a !isDST date to a isDST date"
);
});
- freezeTime({ date: "2020-04-06 10:59" }, () => {
+ freezeTime({ date: "2022-04-04 10:59" }, () => {
assert.buildsCorrectDate(
{
- date: "2020-03-30",
+ date: "2022-03-28",
time: "11:00",
recurring: "1.weeks",
timezone: PARIS,
@@ -218,40 +218,40 @@ module("Unit | Library | local-date-builder", function () {
);
});
- freezeTime({ date: "2020-04-06 11:01" }, () => {
+ freezeTime({ date: "2022-04-04 11:01" }, () => {
assert.buildsCorrectDate(
{
- date: "2020-03-30",
+ date: "2022-03-28",
time: "11:00",
recurring: "1.weeks",
timezone: PARIS,
},
{
- formatted: "April 13, 2020 11:00 AM",
+ formatted: "April 11, 2022 11:00 AM",
},
"it works to the minute"
);
});
- freezeTime({ date: "2020-12-28 09:16" }, () => {
+ freezeTime({ date: "2022-12-26 09:16" }, () => {
assert.buildsCorrectDate(
{
- date: "2021-01-24",
+ date: "2023-01-22",
time: "08:30",
recurring: "1.weeks",
timezone: NEW_YORK,
},
{
- formatted: "January 24, 2021 2:30 PM",
+ formatted: "January 22, 2023 2:30 PM",
},
"it works for a future date"
);
});
- freezeTime({ date: "2021-01-08 11:16" }, () => {
+ freezeTime({ date: "2023-01-06 11:16" }, () => {
assert.buildsCorrectDate(
{
- date: "2021-01-05",
+ date: "2023-01-03",
time: "14:00",
recurring: "2.hours",
timezone: NEW_YORK,
@@ -265,7 +265,7 @@ module("Unit | Library | local-date-builder", function () {
});
test("option[countdown]", function (assert) {
- freezeTime({ date: "2020-03-21 23:59" }, () => {
+ freezeTime({ date: "2022-03-19 23:59" }, () => {
assert.buildsCorrectDate(
{
countdown: true,
@@ -276,7 +276,7 @@ module("Unit | Library | local-date-builder", function () {
);
});
- freezeTime({ date: "2020-03-22 00:01" }, () => {
+ freezeTime({ date: "2022-03-20 00:01" }, () => {
assert.buildsCorrectDate(
{
countdown: true,
@@ -293,77 +293,77 @@ module("Unit | Library | local-date-builder", function () {
});
test("option[calendar]", function (assert) {
- freezeTime({ date: "2020-03-23 23:00" }, () => {
+ freezeTime({ date: "2022-03-21 23:00" }, () => {
assert.buildsCorrectDate(
- { date: "2020-03-22", time: "23:59", timezone: PARIS },
+ { date: "2022-03-20", time: "23:59", timezone: PARIS },
{ formatted: "Yesterday 11:59 PM" },
"it drops calendar mode when event date is more than one day before current date"
);
});
- freezeTime({ date: "2020-03-20 23:59" }, () =>
+ freezeTime({ date: "2022-03-18 23:59" }, () =>
assert.buildsCorrectDate(
- { date: "2020-03-21", time: "01:00", timezone: PARIS },
+ { date: "2022-03-19", time: "01:00", timezone: PARIS },
{ formatted: "Tomorrow 1:00 AM" }
)
);
- freezeTime({ date: "2020-03-20 23:59" }, () =>
+ freezeTime({ date: "2022-03-18 23:59" }, () =>
assert.buildsCorrectDate(
- { date: "2020-03-21", time: "00:00", timezone: PARIS },
+ { date: "2022-03-19", time: "00:00", timezone: PARIS },
{ formatted: "Saturday" },
"it displays the day with no time when the time in the displayed timezone is 00:00"
)
);
- freezeTime({ date: "2020-03-20 23:59" }, () => {
+ freezeTime({ date: "2022-03-18 23:59" }, () => {
assert.buildsCorrectDate(
- { date: "2020-03-21", time: "23:59", timezone: PARIS },
+ { date: "2022-03-19", time: "23:59", timezone: PARIS },
{ formatted: "Tomorrow 11:59 PM" }
);
});
- freezeTime({ date: "2020-03-21 00:00" }, () =>
+ freezeTime({ date: "2022-03-19 00:00" }, () =>
assert.buildsCorrectDate(
- { date: "2020-03-21", time: "23:00", timezone: PARIS },
+ { date: "2022-03-19", time: "23:00", timezone: PARIS },
{ formatted: "Today 11:00 PM" }
)
);
- freezeTime({ date: "2020-03-22 23:59" }, () =>
+ freezeTime({ date: "2022-03-20 23:59" }, () =>
assert.buildsCorrectDate(
- { date: "2020-03-21", time: "23:59", timezone: PARIS },
+ { date: "2022-03-19", time: "23:59", timezone: PARIS },
{ formatted: "Yesterday 11:59 PM" }
)
);
- freezeTime({ date: "2020-03-22 23:59" }, () =>
+ freezeTime({ date: "2022-03-20 23:59" }, () =>
assert.buildsCorrectDate(
- { date: "2020-03-21", time: "23:59", timezone: PARIS },
+ { date: "2022-03-19", time: "23:59", timezone: PARIS },
{ formatted: "Yesterday 11:59 PM" }
)
);
- freezeTime({ date: "2020-03-22 23:59" }, () =>
+ freezeTime({ date: "2022-03-20 23:59" }, () =>
assert.buildsCorrectDate(
- { calendar: false, date: "2020-03-21", time: "23:59", timezone: PARIS },
- { formatted: "March 21, 2020 11:59 PM" },
+ { calendar: false, date: "2022-03-19", time: "23:59", timezone: PARIS },
+ { formatted: "March 19, 2022 11:59 PM" },
"it doesn't use calendar when disabled"
)
);
- freezeTime({ date: "2020-03-24 01:00" }, () =>
+ freezeTime({ date: "2022-03-22 01:00" }, () =>
assert.buildsCorrectDate(
- { date: "2020-03-21", timezone: PARIS },
- { formatted: "March 21, 2020" },
+ { date: "2022-03-19", timezone: PARIS },
+ { formatted: "March 19, 2022" },
"it stops formatting out of calendar range"
)
);
- freezeTime({ date: "2020-05-12", timezone: LOS_ANGELES }, () => {
+ freezeTime({ date: "2022-05-10", timezone: LOS_ANGELES }, () => {
assert.buildsCorrectDate(
{
- date: "2020-05-13",
+ date: "2022-05-11",
time: "18:00",
localTimezone: LOS_ANGELES,
},
@@ -374,7 +374,7 @@ module("Unit | Library | local-date-builder", function () {
});
test("previews", function (assert) {
- freezeTime({ date: "2020-03-22" }, () => {
+ freezeTime({ date: "2022-03-20" }, () => {
assert.buildsCorrectDate(
{ timezone: PARIS },
{
@@ -382,7 +382,7 @@ module("Unit | Library | local-date-builder", function () {
{
current: true,
formatted:
- "Sunday, March 22, 2020 12:00 AM → Monday, March 23, 2020 12:00 AM",
+ "Sunday, March 20, 2022 12:00 AM → Monday, March 21, 2022 12:00 AM",
timezone: "Paris",
},
],
@@ -390,7 +390,7 @@ module("Unit | Library | local-date-builder", function () {
);
});
- freezeTime({ date: "2020-03-22", timezone: PARIS }, () => {
+ freezeTime({ date: "2022-03-20", timezone: PARIS }, () => {
assert.buildsCorrectDate(
{ timezone: PARIS, timezones: [SYDNEY] },
{
@@ -398,12 +398,12 @@ module("Unit | Library | local-date-builder", function () {
{
current: true,
formatted:
- "Sunday, March 22, 2020 12:00 AM → Monday, March 23, 2020 12:00 AM",
+ "Sunday, March 20, 2022 12:00 AM → Monday, March 21, 2022 12:00 AM",
timezone: "Paris",
},
{
formatted:
- "Sunday, March 22, 2020 10:00 AM → Monday, March 23, 2020 10:00 AM",
+ "Sunday, March 20, 2022 10:00 AM → Monday, March 21, 2022 10:00 AM",
timezone: "Sydney",
},
],
@@ -411,7 +411,7 @@ module("Unit | Library | local-date-builder", function () {
);
});
- freezeTime({ date: "2020-03-22", timezone: PARIS }, () => {
+ freezeTime({ date: "2022-03-20", timezone: PARIS }, () => {
assert.buildsCorrectDate(
{ timezone: PARIS, displayedTimezone: LOS_ANGELES },
{
@@ -419,7 +419,7 @@ module("Unit | Library | local-date-builder", function () {
{
current: true,
formatted:
- "Sunday, March 22, 2020 12:00 AM → Monday, March 23, 2020 12:00 AM",
+ "Sunday, March 20, 2022 12:00 AM → Monday, March 21, 2022 12:00 AM",
timezone: "Paris",
},
],
@@ -427,7 +427,7 @@ module("Unit | Library | local-date-builder", function () {
);
});
- freezeTime({ date: "2020-03-22", timezone: PARIS }, () => {
+ freezeTime({ date: "2022-03-20", timezone: PARIS }, () => {
assert.buildsCorrectDate(
{ timezone: PARIS, displayedTimezone: PARIS },
{
@@ -435,7 +435,7 @@ module("Unit | Library | local-date-builder", function () {
{
current: true,
formatted:
- "Sunday, March 22, 2020 12:00 AM → Monday, March 23, 2020 12:00 AM",
+ "Sunday, March 20, 2022 12:00 AM → Monday, March 21, 2022 12:00 AM",
timezone: "Paris",
},
],
@@ -443,7 +443,7 @@ module("Unit | Library | local-date-builder", function () {
);
});
- freezeTime({ date: "2020-03-22", timezone: PARIS }, () => {
+ freezeTime({ date: "2022-03-20", timezone: PARIS }, () => {
assert.buildsCorrectDate(
{ timezone: PARIS, timezones: [PARIS] },
{
@@ -451,7 +451,7 @@ module("Unit | Library | local-date-builder", function () {
{
current: true,
formatted:
- "Sunday, March 22, 2020 12:00 AM → Monday, March 23, 2020 12:00 AM",
+ "Sunday, March 20, 2022 12:00 AM → Monday, March 21, 2022 12:00 AM",
timezone: "Paris",
},
],
@@ -459,7 +459,7 @@ module("Unit | Library | local-date-builder", function () {
);
});
- freezeTime({ date: "2020-03-22", timezone: PARIS }, () => {
+ freezeTime({ date: "2022-03-20", timezone: PARIS }, () => {
assert.buildsCorrectDate(
{ duration: 90, timezone: PARIS, timezones: [PARIS] },
{
@@ -467,7 +467,7 @@ module("Unit | Library | local-date-builder", function () {
{
current: true,
formatted:
- "Sunday, March 22, 2020 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 12:00 AM → 1:30 AM",
+ "Sunday, March 20, 2022 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 12:00 AM → 1:30 AM",
timezone: "Paris",
},
],
@@ -475,7 +475,7 @@ module("Unit | Library | local-date-builder", function () {
);
});
- freezeTime({ date: "2020-03-22", timezone: PARIS }, () => {
+ freezeTime({ date: "2022-03-20", timezone: PARIS }, () => {
assert.buildsCorrectDate(
{ duration: 1440, timezone: PARIS, timezones: [PARIS] },
{
@@ -483,7 +483,7 @@ module("Unit | Library | local-date-builder", function () {
{
current: true,
formatted:
- "Sunday, March 22, 2020 12:00 AM → Monday, March 23, 2020 12:00 AM",
+ "Sunday, March 20, 2022 12:00 AM → Monday, March 21, 2022 12:00 AM",
timezone: "Paris",
},
],
@@ -491,7 +491,7 @@ module("Unit | Library | local-date-builder", function () {
);
});
- freezeTime({ date: "2020-03-22", timezone: PARIS }, () => {
+ freezeTime({ date: "2022-03-20", timezone: PARIS }, () => {
assert.buildsCorrectDate(
{ time: "11:34", timezone: PARIS, timezones: [PARIS] },
{
@@ -499,7 +499,7 @@ module("Unit | Library | local-date-builder", function () {
{
current: true,
formatted:
- "Sunday, March 22, 2020 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 11:34 AM",
+ "Sunday, March 20, 2022 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 11:34 AM",
timezone: "Paris",
},
],
@@ -507,11 +507,11 @@ module("Unit | Library | local-date-builder", function () {
);
});
- freezeTime({ date: "2020-04-06", timezone: PARIS }, () => {
+ freezeTime({ date: "2022-04-04", timezone: PARIS }, () => {
assert.buildsCorrectDate(
{
timezone: PARIS,
- date: "2020-04-07",
+ date: "2022-04-05",
timezones: [LONDON, LAGOS, SYDNEY],
},
{
@@ -519,22 +519,22 @@ module("Unit | Library | local-date-builder", function () {
{
current: true,
formatted:
- "Tuesday, April 7, 2020 12:00 AM → Wednesday, April 8, 2020 12:00 AM",
+ "Tuesday, April 5, 2022 12:00 AM → Wednesday, April 6, 2022 12:00 AM",
timezone: "Paris",
},
{
formatted:
- "Monday, April 6, 2020 11:00 PM → Tuesday, April 7, 2020 11:00 PM",
+ "Monday, April 4, 2022 11:00 PM → Tuesday, April 5, 2022 11:00 PM",
timezone: "London",
},
{
formatted:
- "Monday, April 6, 2020 11:00 PM → Tuesday, April 7, 2020 11:00 PM",
+ "Monday, April 4, 2022 11:00 PM → Tuesday, April 5, 2022 11:00 PM",
timezone: "Lagos",
},
{
formatted:
- "Tuesday, April 7, 2020 8:00 AM → Wednesday, April 8, 2020 8:00 AM",
+ "Tuesday, April 5, 2022 8:00 AM → Wednesday, April 6, 2022 8:00 AM",
timezone: "Sydney",
},
],
@@ -542,11 +542,11 @@ module("Unit | Library | local-date-builder", function () {
);
});
- freezeTime({ date: "2020-04-06", timezone: PARIS }, () => {
+ freezeTime({ date: "2022-04-04", timezone: PARIS }, () => {
assert.buildsCorrectDate(
{
timezone: PARIS,
- date: "2020-04-07",
+ date: "2022-04-05",
time: "14:54",
timezones: [LONDON, LAGOS, SYDNEY],
},
@@ -555,22 +555,22 @@ module("Unit | Library | local-date-builder", function () {
{
current: true,
formatted:
- "Tuesday, April 7, 2020 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 2:54 PM",
+ "Tuesday, April 5, 2022 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 2:54 PM",
timezone: "Paris",
},
{
formatted:
- "Tuesday, April 7, 2020 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 1:54 PM",
+ "Tuesday, April 5, 2022 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 1:54 PM",
timezone: "London",
},
{
formatted:
- "Tuesday, April 7, 2020 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 1:54 PM",
+ "Tuesday, April 5, 2022 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 1:54 PM",
timezone: "Lagos",
},
{
formatted:
- "Tuesday, April 7, 2020 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 10:54 PM",
+ "Tuesday, April 5, 2022 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 10:54 PM",
timezone: "Sydney",
},
],
@@ -578,10 +578,10 @@ module("Unit | Library | local-date-builder", function () {
);
});
- freezeTime({ date: "2020-05-12", timezone: LOS_ANGELES }, () => {
+ freezeTime({ date: "2022-05-10", timezone: LOS_ANGELES }, () => {
assert.buildsCorrectDate(
{
- date: "2020-05-13",
+ date: "2022-05-11",
time: "18:00",
localTimezone: LOS_ANGELES,
},
@@ -590,12 +590,12 @@ module("Unit | Library | local-date-builder", function () {
{
current: true,
formatted:
- "Wednesday, May 13, 2020 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 11:00 AM",
+ "Wednesday, May 11, 2022 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 11:00 AM",
timezone: "Los Angeles",
},
{
formatted:
- "Wednesday, May 13, 2020 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 6:00 PM",
+ "Wednesday, May 11, 2022 <br /><svg class='fa d-icon d-icon-clock svg-icon fa-width-auto svg-string' width='1em' height='1em' aria-hidden='true' xmlns=\"http://www.w3.org/2000/svg\"><use href=\"#clock\" /></svg> 6:00 PM",
timezone: "UTC",
},
],
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0de94be747e..e31e2d672e2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -255,7 +255,7 @@ importers:
version: 6.1.20(@fullcalendar/[email protected])([email protected])
'@fullcalendar/moment-timezone':
specifier: ^6.1.20
- version: 6.1.20(@fullcalendar/[email protected])([email protected])
+ version: 6.1.20(@fullcalendar/[email protected])([email protected])
'@fullcalendar/timegrid':
specifier: ^6.1.20
version: 6.1.20(@fullcalendar/[email protected])
@@ -326,8 +326,8 @@ importers:
specifier: 2.30.1
version: 2.30.1
moment-timezone:
- specifier: 0.6.0
- version: 0.6.0
+ specifier: 0.6.1
+ version: 0.6.1
morphlex:
specifier: ^1.0.5
version: 1.0.5
@@ -7144,8 +7144,8 @@ packages:
resolution: {integrity: sha512-Q9wJ/xhzeD9Wua1MwDN2v3ah3HENsUVSlzzL9Qw149cL9hHZkXtQGl3Eq36BbdLV+/qUwaP1WtJQ+H/+Oxso8g==}
engines: {node: 20 || 22 || 24}
- resolution: {integrity: sha512-ldA5lRNm3iJCWZcBCab4pnNL3HSZYXVb/3TYr75/1WCTWYuTqYUb5f/S384pncYjJ88lbO8Z4uPDvmoluHJc8Q==}
+ resolution: {integrity: sha512-1B9lmAhB9D9/sHaPC1N7wLFEVUoFldxOpOO96lOD1PvJ43vCd0ozDPbu0FEL3++VvawOlDkq8YD373tJmP5JHw==}
resolution: {integrity: sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==}
@@ -11210,10 +11210,10 @@ snapshots:
dependencies:
'@fullcalendar/core': 6.1.20
- '@fullcalendar/[email protected](@fullcalendar/[email protected])([email protected])':
+ '@fullcalendar/[email protected](@fullcalendar/[email protected])([email protected])':
dependencies:
'@fullcalendar/core': 6.1.20
- moment-timezone: 0.6.0
+ moment-timezone: 0.6.1
'@fullcalendar/[email protected](@fullcalendar/[email protected])([email protected])':
dependencies:
@@ -17180,7 +17180,7 @@ snapshots:
dependencies:
moment: 2.30.1