We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abac281 commit 1332a3aCopy full SHA for 1332a3a
frontend/src/Components/common/Calendar.jsx
@@ -35,8 +35,8 @@ const DashboardCalendar = () => {
35
const getTileColor = (d) => {
36
if (!d) return "bg-transparent";
37
const date = new Date(year, month, d);
38
- const dayMid = date.setHours(0, 0, 0, 0);
39
- const todayMid = today.setHours(0, 0, 0, 0);
+ const dayMid = new Date(date).setHours(0, 0, 0, 0);
+ const todayMid = new Date(today).setHours(0, 0, 0, 0);
40
const hasEvent = getEventsForDate(date, events).length > 0;
41
const holiday = getHolidayForDate(date, holidays2025);
42
0 commit comments