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