Skip to content

Commit 4cc585c

Browse files
committed
fix: reduce Easter time
1 parent 04c4f8d commit 4cc585c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/js/snek.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ function getSeasonStyles() {
8888
return { month, day };
8989
}
9090

91-
// Check if it's Easter season (2 weeks around Easter Sunday)
91+
// Check if it's Easter season (1 week around Easter Sunday)
9292
const easter = getEaster(today.getFullYear());
93-
const twoWeeksInMs = 14 * 24 * 60 * 60 * 1000;
93+
const twoWeeksInMs = 7 * 24 * 60 * 60 * 1000;
9494
const easterDate = new Date(today.getFullYear(), easter.month, easter.day);
9595
const diff = Math.abs(today - easterDate);
9696

0 commit comments

Comments
 (0)