From 498e377582b04fcb1e2aa2aee9fd1cf1edd14eef Mon Sep 17 00:00:00 2001 From: Ivn Nv Date: Mon, 4 Nov 2024 11:08:28 +0200 Subject: [PATCH] f --- src/utils/Utils.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/Utils.tsx b/src/utils/Utils.tsx index 4bbe4e13..098f1c3f 100644 --- a/src/utils/Utils.tsx +++ b/src/utils/Utils.tsx @@ -173,8 +173,8 @@ export default { return newObject }, - getLocalizedDateTime(ts: string) { - const formattedDate = new Date(ts).toLocaleString('default', { + getLocalizedDateTime(timestamp: string) { + const formattedDate = new Date(timestamp).toLocaleString('default', { year: 'numeric', month: 'numeric', day: 'numeric', @@ -184,7 +184,7 @@ export default { return formattedDate }, - getRelativeDateTime(ts: string) { - return moment(new Date(ts)).fromNow() + getRelativeDateTime(timestamp: string) { + return moment(new Date(timestamp)).fromNow() }, }