Skip to content
Permalink
Browse files
fix(b-calendar): month formatting for ceratin dates (#5911)
  • Loading branch information
jacobmllr95 committed Oct 16, 2020
1 parent 955ad63 commit 7de1844c6d5c0014d25c930527a7fc49a2b0cc25
Showing 1 changed file with 4 additions and 1 deletion.
@@ -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

0 comments on commit 7de1844

Please sign in to comment.