Skip to content

Commit 3427f35

Browse files
authoredSep 11, 2020
fix(ui5-calendar): Year text is now right in all timezones (#2209)
1 parent 2bca6f1 commit 3427f35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/main/src/Calendar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class Calendar extends UI5Element {
217217
this._oMonth.minDate = this.minDate;
218218
this._oMonth.maxDate = this.maxDate;
219219
this._header.monthText = this._oLocaleData.getMonths("wide", this._primaryCalendarType)[this._month];
220-
this._header.yearText = oYearFormat.format(this._localDate);
220+
this._header.yearText = oYearFormat.format(this._localDate, true);
221221
currentMonth = this.timestamp && CalendarDate.fromTimestamp(this.timestamp * 1000).getMonth();
222222
currentYear = this.timestamp && CalendarDate.fromTimestamp(this.timestamp * 1000).getYear();
223223

0 commit comments

Comments
 (0)