From 92ba4aea9a222ce16ba11bbe710764ce610b29a7 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Fri, 14 Feb 2025 14:53:19 +0100 Subject: [PATCH] return year as number not as string --- public/js/composables/CalendarDate.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/js/composables/CalendarDate.js b/public/js/composables/CalendarDate.js index f2f8c93f0..e85cbeeac 100644 --- a/public/js/composables/CalendarDate.js +++ b/public/js/composables/CalendarDate.js @@ -71,9 +71,9 @@ class CalendarDate { } get wYear() { if( this.w === 1 ) { - return this.cdLastDayOfWeek.format({ year: 'numeric' }); + return this.cdLastDayOfWeek.y; } - return this.cdFirstDayOfWeek.format({ year: 'numeric' }); + return this.cdFirstDayOfWeek.y; } get wd() { if (this._wd === null) { @@ -271,4 +271,4 @@ CalendarDate.getWeekStart = function(locale) { } } -export default CalendarDate \ No newline at end of file +export default CalendarDate