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 = () => {