handled properly checkInTime for timeElapsed
This commit is contained in:
parent
68475f4742
commit
2e04794047
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user