Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix(ui): correct calendar header month parsing (#5532)
Brent Bilis2f7c8dcea7df
diff --git a/web/src/components/StatisticsView/MonthNavigator.tsx b/web/src/components/StatisticsView/MonthNavigator.tsxindex fe4eadb46..58a67d201 100644--- a/web/src/components/StatisticsView/MonthNavigator.tsx+++ b/web/src/components/StatisticsView/MonthNavigator.tsx@@ -1,3 +1,4 @@+import dayjs from "dayjs";import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from "lucide-react";import { useState } from "react";import { YearCalendar } from "@/components/ActivityCalendar";@@ -8,7 +9,7 @@ import type { MonthNavigatorProps } from "@/types/statistics";export const MonthNavigator = ({ visibleMonth, onMonthChange, activityStats }: MonthNavigatorProps) => {const [isOpen, setIsOpen] = useState(false);- const currentMonth = new Date(visibleMonth);+ const currentMonth = dayjs(visibleMonth).toDate();const currentYear = getYearFromDate(visibleMonth);const currentMonthNum = getMonthFromDate(visibleMonth);