Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fix calendar starting day.

Mike Caoe35821a0c306
diff --git a/components/common/Calendar.js b/components/common/Calendar.js
index d9c281d39..9ad1be88a 100644
--- a/components/common/Calendar.js
+++ b/components/common/Calendar.js
@@ -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();