From 9d61e6f842318fce8fc9e81bafed5b62e2b5de5f Mon Sep 17 00:00:00 2001 From: Louis Mazin Date: Tue, 15 Sep 2026 20:16:21 +0200 Subject: [PATCH] test --- frontend/src/pages/TimeClockPage.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/TimeClockPage.jsx b/frontend/src/pages/TimeClockPage.jsx index d3d6e95..a33f305 100644 --- a/frontend/src/pages/TimeClockPage.jsx +++ b/frontend/src/pages/TimeClockPage.jsx @@ -267,9 +267,9 @@ const TimeClockPage = () => { }; const formatTime = (timeString) => { - if (!timeString) return ''; + if (!timeString) return '00h00'; const [hours, minutes] = timeString.split(':'); - return `${hours}h${minutes}`; + return `${String(hours).padStart(2, '0')}h${String(minutes).padStart(2, '0')}`; }; const formatDate = (dateString) => { @@ -452,8 +452,8 @@ const TimeClockPage = () => { {entry.user} } {formatDate(entry.date)} - {entry.start_time ? formatTime(entry.start_time) : 'Non renseignée'} - {entry.end_time ? formatTime(entry.end_time) : 'Non renseignée'} + {formatTime(entry.start_time)} + {formatTime(entry.end_time)} {formatDuration(entry.duration)} {isAdmin &&