diff --git a/src/app/components/calendar/calendar.ts b/src/app/components/calendar/calendar.ts index 6e6d5b7b443..7595cc9cf6c 100755 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -59,7 +59,7 @@ export interface LocaleSettings { {{getMonthName(month.month)}} {{yearPickerValues()[0]}} - {{yearPickerValues()[yearPickerValues().length - 1]}} @@ -1396,6 +1396,9 @@ export class Calendar implements OnInit,OnDestroy,ControlValueAccessor { return this.config.getTranslation('monthNames')[index]; } + getYear(month) { + return this.currentView === 'month' ? this.currentYear : month.year; + } switchViewButtonDisabled() { return this.numberOfMonths > 1 || this.disabled;