Skip to content

Commit

Permalink
Fixes day of month start day (calcom#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
emrysal authored 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

0 comments on commit bc46f4f

Please sign in to comment.