Skip to content

Commit 62f3772

Browse files
committed
fix: correct Luxon syntax in countdown-lazy.js
- Change luxon.DateTime to DateTime to match global scope - Fixes broken countdown timers across the site - Maintains Luxon for critical timezone handling
1 parent 32df8c8 commit 62f3772

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/js/countdown-lazy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
if (!deadlineStr) return;
5454

5555
// Parse deadline using Luxon (keeping existing library)
56-
const deadline = luxon.DateTime.fromISO(deadlineStr);
56+
const deadline = DateTime.fromISO(deadlineStr);
5757

5858
// Store timer data for both regular and small countdown
5959
countdownElements.forEach((el, index) => {
@@ -84,7 +84,7 @@
8484
const timer = activeTimers.get(timerId);
8585
if (!timer) return;
8686

87-
const now = luxon.DateTime.now();
87+
const now = DateTime.now();
8888
const diff = timer.deadline.diff(now, ['days', 'hours', 'minutes', 'seconds']);
8989

9090
if (diff.toMillis() <= 0) {

0 commit comments

Comments
 (0)