From 2e0479404762596ae26446988164eaf89181277d Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Sat, 10 May 2025 11:54:23 +0530 Subject: [PATCH] handled properly checkInTime for timeElapsed --- src/utils/dateUtils.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/dateUtils.jsx b/src/utils/dateUtils.jsx index f18efd0f..cb393e41 100644 --- a/src/utils/dateUtils.jsx +++ b/src/utils/dateUtils.jsx @@ -41,7 +41,7 @@ export const convertShortTime = (dateString) => { }; export const timeElapsed = (checkInTime, timeElapsedInHours) => { - const checkInDate = new Date(checkInTime); + const checkInDate = new Date( checkInTime.split( "T" )[ 0 ] ); const currentTime = new Date();