From eabe8ef40139272d952fcbcdf4a9c242dae5de38 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Tue, 11 Feb 2025 10:15:22 +0100 Subject: [PATCH] CalendarDate patch schaltjahr --- public/js/composables/CalendarDate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/composables/CalendarDate.js b/public/js/composables/CalendarDate.js index ff7b2916f..77dc07128 100644 --- a/public/js/composables/CalendarDate.js +++ b/public/js/composables/CalendarDate.js @@ -3,7 +3,7 @@ import CalendarDates from "./CalendarDates.js"; const monthDayRanges = [] for(let i = 1; i < 13; i++) { - monthDayRanges.push(new Date(1995, i, 0).getDate()) + monthDayRanges.push(new Date(new Date(Date.now).getFullYear(), i, 0).getDate()) } class CalendarDate {