diff --git a/frontend/src/components/dashboard/DashboardPage.tsx b/frontend/src/components/dashboard/DashboardPage.tsx index f1b3855..e987940 100644 --- a/frontend/src/components/dashboard/DashboardPage.tsx +++ b/frontend/src/components/dashboard/DashboardPage.tsx @@ -42,6 +42,13 @@ export default function DashboardPage() { const [quickAddType, setQuickAddType] = useState<'event' | 'todo' | 'reminder' | null>(null); const [dropdownOpen, setDropdownOpen] = useState(false); const dropdownRef = useRef(null); + const [clockNow, setClockNow] = useState(() => new Date()); + + // Live clock — update every minute + useEffect(() => { + const interval = setInterval(() => setClockNow(new Date()), 60_000); + return () => clearInterval(interval); + }, []); // Click outside to close dropdown useEffect(() => { @@ -173,7 +180,9 @@ export default function DashboardPage() {

- {format(new Date(), 'EEEE, MMMM d, yyyy')} + {format(clockNow, 'h:mm a')} + | + {format(clockNow, 'EEEE, MMMM d, yyyy')}

{updatedAgo && ( <>