Update apps/explorer/src/app/components/seconds-ago/index.tsx

Co-authored-by: Dexter Edwards <dexter.edwards93@gmail.com>
This commit is contained in:
Sam Keen 2022-03-18 14:54:46 +00:00 committed by GitHub
parent a160c54688
commit 5c9571766a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,11 +18,6 @@ export const SecondsAgo = ({ date, ...props }: SecondsAgoProps) => {
return <>Date unknown</>;
}
console.log(
`now: ${now}, before: ${new Date(
date
).getTime()}, date getting passed in: ${date}`
);
const timeAgoInSeconds = Math.floor((now - new Date(date).getTime()) / 1000);