Skip to content

Commit

Permalink
fix(single-datepicker): the month label on january have a wrong year
Browse files Browse the repository at this point in the history
Close #25
  • Loading branch information
fetrarij committed Jul 23, 2018
1 parent af83886 commit 397554c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daterangepicker/daterangepicker.component.html
Expand Up @@ -46,7 +46,7 @@
</select>
</ng-container>
<ng-container *ngIf="!showDropdowns || !calendarVariables.left.dropdowns">
{{this.locale.monthNames[calendarVariables?.left?.calendar[1][1].month()]}} {{ calendarVariables?.left?.calendar[0][0].format(" YYYY")}}
{{this.locale.monthNames[calendarVariables?.left?.calendar[1][1].month()]}} {{ calendarVariables?.left?.calendar[1][1].format(" YYYY")}}
</ng-container>
</th>
<ng-container *ngIf="(!calendarVariables.left.maxDate || calendarVariables.left.maxDate.isAfter(calendarVariables.left.calendar.lastDay)) && (!linkedCalendars || singleDatePicker )">
Expand Down

0 comments on commit 397554c

Please sign in to comment.