handled properly checkInTime for timeElapsed

This commit is contained in:
Pramod Mahajan 2025-05-10 11:54:23 +05:30
parent 31e5a63fb7
commit 18b328743a

View File

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