Skip to content

Commit 29753e5

Browse files
committed
DST adjust
1 parent c5838aa commit 29753e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/easycoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2905,7 +2905,7 @@ const EasyCoder_Core = {
29052905
content: ``
29062906
};
29072907
case `now`:
2908-
const d = Date();
2908+
const d = new Date();
29092909
const jan = new Date(d.getFullYear(), 0, 1).getTimezoneOffset();
29102910
const jul = new Date(d.getFullYear(), 6, 1).getTimezoneOffset();
29112911
const isDST = Math.max(jan, jul) !== d.getTimezoneOffset();

js/easycoder/Core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2905,7 +2905,7 @@ const EasyCoder_Core = {
29052905
content: ``
29062906
};
29072907
case `now`:
2908-
const d = Date();
2908+
const d = new Date();
29092909
const jan = new Date(d.getFullYear(), 0, 1).getTimezoneOffset();
29102910
const jul = new Date(d.getFullYear(), 6, 1).getTimezoneOffset();
29112911
const isDST = Math.max(jan, jul) !== d.getTimezoneOffset();

0 commit comments

Comments
 (0)