mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-22 05:11:55 +01:00
Calendar: Fix months starting from Sunday (#1312)
This commit is contained in:
parent
cf96a04364
commit
5ba055400b
@ -269,7 +269,7 @@ function buildCalendarGrid(year: number, month: number) {
|
||||
date.setMonth(month);
|
||||
date.setDate(1);
|
||||
|
||||
const monthStartDay = date.getDay();
|
||||
const monthStartDay = date.getDay() || 7;
|
||||
// Fill empty cells
|
||||
for (let i = 1; i < monthStartDay; i++) {
|
||||
grid.push(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user