mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Fix calendar starting day.
This commit is contained in:
parent
5b4a012f0b
commit
e35821a0c3
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ export default function Calendar({ date, minDate, maxDate, onChange }) {
|
|||
const DaySelector = ({ date, minDate, maxDate, locale, onSelect }) => {
|
||||
const startWeek = startOfWeek(date);
|
||||
const startMonth = startOfMonth(date);
|
||||
const startDay = subDays(startMonth, startMonth.getDay() + 1);
|
||||
const startDay = subDays(startMonth, startMonth.getDay());
|
||||
const month = date.getMonth();
|
||||
const year = date.getFullYear();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue