mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-23 05:41:14 +01:00
Calendar: Fix months starting with Sunday (again) (#1794)
This commit is contained in:
parent
c9cc588704
commit
e5b6faff68
@ -337,7 +337,7 @@ function buildCalendarGrid(year: number, month: number) {
|
||||
date.setDate(1);
|
||||
date.setMonth(month);
|
||||
date.setFullYear(year);
|
||||
const firstDay = date.getDay();
|
||||
const firstDay = date.getDay() || 7;
|
||||
const totalDaysInPrevMonth = new Date(year, month, 0).getDate();
|
||||
|
||||
for (let i = 1; i < firstDay; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user