mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 09:22:22 +00:00
return year as number not as string
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user