From ebb7bba8eaf7095300355523ef383494711d7d37 Mon Sep 17 00:00:00 2001 From: Alma Date: Sun, 13 Apr 2025 19:31:39 +0200 Subject: [PATCH] agenda widget --- components/calendar.tsx | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/components/calendar.tsx b/components/calendar.tsx index ce3bf25f..197f50c5 100644 --- a/components/calendar.tsx +++ b/components/calendar.tsx @@ -79,10 +79,18 @@ export function Calendar() { }).format(date); }; + const formatTime = (dateString: string) => { + const date = new Date(dateString); + return new Intl.DateTimeFormat('fr-FR', { + hour: '2-digit', + minute: '2-digit', + }).format(date); + }; + return ( - Calendar + Agenda