Merge branch 'main' into web3

pull/1439/head
Peer Richelsen 2021-12-30 13:33:56 +01:00 committed by GitHub
commit 3847196aa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;