Skip to content

Commit

Permalink
fix(b-calendar): month formatting for ceratin dates (#5911)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmllr95 authored Oct 16, 2020
1 parent 955ad63 commit 7de1844
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/calendar/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,10 @@ export const BCalendar = Vue.extend({
return this.activeDate.getMonth()
},
calendarFirstDay() {
return createDate(this.calendarYear, this.calendarMonth, 1)
// We set the time for this date to 12pm to work around
// date formatting issues in Firefox and Safari
// See: https://github.com/bootstrap-vue/bootstrap-vue/issues/5818
return createDate(this.calendarYear, this.calendarMonth, 1, 12)
},
calendarDaysInMonth() {
// We create a new date as to not mutate the original
Expand Down

0 comments on commit 7de1844

Please sign in to comment.