Skip to content

Commit 4357221

Browse files
author
Koen Konst
committed
Import moment first before moment-timezone to make sure moment timezone is loaded correctly
1 parent 7f22e9a commit 4357221

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

modules/default/calendar/calendar.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Module.register("calendar", {
7777

7878
// Define required scripts.
7979
getScripts () {
80-
return ["calendarutils.js", "moment-timezone.js", "moment.js"];
80+
return ["calendarutils.js", "moment.js", "moment-timezone.js"];
8181
},
8282

8383
// Define required translations.
@@ -218,10 +218,6 @@ Module.register("calendar", {
218218
// Override dom generator.
219219
getDom () {
220220
const ONE_SECOND = 1000; // 1,000 milliseconds
221-
const ONE_MINUTE = ONE_SECOND * 60;
222-
const ONE_HOUR = ONE_MINUTE * 60;
223-
const ONE_DAY = ONE_HOUR * 24;
224-
225221
const events = this.createEventList(true);
226222
const wrapper = document.createElement("table");
227223
wrapper.className = this.config.tableClass;

0 commit comments

Comments
 (0)