From 8289f01797b4536b6ad0cffc6c5d6efc852762a7 Mon Sep 17 00:00:00 2001 From: colton <1679963578@qq.com> Date: Wed, 23 Oct 2024 15:40:42 +0800 Subject: [PATCH] fix --- src/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/utils.ts b/src/utils/utils.ts index b321eb0..e455cc1 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -1,7 +1,7 @@ import { toast } from 'sonner'; export const timestampToDateTime = (timestamp: number) => { - const date = new Date((timestamp * 1000) / 1000); + const date = new Date(timestamp * 1000); const year = date.getFullYear(); const month = ('0' + (date.getMonth() + 1)).slice(-2);