Skip to content

Commit

Permalink
Fixes day of month start day (#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
emrysal committed Dec 29, 2021
1 parent 9b58369 commit bc46f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/booking/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function DatePicker({
return [];
}
// Create placeholder elements for empty days in first week
let weekdayOfFirst = browsingDate.startOf("month").day();
let weekdayOfFirst = browsingDate.date(1).day();
if (weekStart === "Monday") {
weekdayOfFirst -= 1;
if (weekdayOfFirst < 0) weekdayOfFirst = 6;
Expand Down

1 comment on commit bc46f4f

@vercel
Copy link

@vercel vercel bot commented on bc46f4f Dec 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.