return year as number not as string

This commit is contained in:
Harald Bamberger
2025-02-14 14:53:19 +01:00
parent 7fed1d231c
commit 92ba4aea9a
+3 -3
View File
@@ -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
export default CalendarDate