Improve year week calculation for accurate display of past and future events

Refactor the `getYearWeeks` function to use a safer `Date` constructor and limit the number of weeks generated, addressing an issue with the year 2025 calculation.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 0ec86cdf-a5be-4b0e-84a3-07b926f5cc80
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/0ec86cdf-a5be-4b0e-84a3-07b926f5cc80/ZJYssQp
This commit is contained in:
michaelschal committed 2025-08-21 11:20:58 +00:00
1 parent df061adf7a
commit 55afb8eb70
2 files changed
+53 -59

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB