From 36b03d6e9d8ac20ce600dc76fedb5dae24dd76ae Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 27 Mar 2022 20:10:49 -0500 Subject: Add social skill icon & fix date leaderboards --- src/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/utils.ts') diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 547a122..e7bebb2 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -189,7 +189,7 @@ export function formatNumberFromUnit(n: number, unit: null | 'date' | 'time' | s case null: return n.toLocaleString() case 'date': - return (new Date(n * 1000)).toUTCString() + return (new Date(n)).toUTCString() case 'time': return millisecondsToTime(Math.abs(n)) default: -- cgit