Skip to content

Commit

Permalink
fix(ui5-calendar): Year text is now right in all timezones (#2209)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsanislavgatev committed Sep 11, 2020
1 parent 2bca6f1 commit 3427f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/main/src/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class Calendar extends UI5Element {
this._oMonth.minDate = this.minDate;
this._oMonth.maxDate = this.maxDate;
this._header.monthText = this._oLocaleData.getMonths("wide", this._primaryCalendarType)[this._month];
this._header.yearText = oYearFormat.format(this._localDate);
this._header.yearText = oYearFormat.format(this._localDate, true);
currentMonth = this.timestamp && CalendarDate.fromTimestamp(this.timestamp * 1000).getMonth();
currentYear = this.timestamp && CalendarDate.fromTimestamp(this.timestamp * 1000).getYear();

Expand Down

0 comments on commit 3427f35

Please sign in to comment.