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();