bugfixes and some redesign
This commit is contained in:
@@ -43,7 +43,7 @@ export function formatElapsedTime(utcTimestamp: string): string {
|
||||
}
|
||||
const then = new Date(isoString);
|
||||
const now = new Date();
|
||||
const diffMs = now - then;
|
||||
const diffMs = now.getTime() - then.getTime();
|
||||
const diffMins = Math.floor(diffMs / 60000);
|
||||
const hours = Math.floor(diffMins / 60);
|
||||
const mins = diffMins % 60;
|
||||
|
||||
Reference in New Issue
Block a user