From d9ab1ce0c6ddfa9154ad4fd16a0799afb82f45b2 Mon Sep 17 00:00:00 2001 From: ijun17 Date: Tue, 19 Nov 2024 10:21:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20offset=20=EB=B9=BC=EA=B8=B0=EB=A1=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FE/src/hooks/useServerDate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FE/src/hooks/useServerDate.ts b/FE/src/hooks/useServerDate.ts index f76f48d..b2def38 100644 --- a/FE/src/hooks/useServerDate.ts +++ b/FE/src/hooks/useServerDate.ts @@ -14,7 +14,7 @@ const useServerDate = () => { setOffset(clientTime - res.serverTime); }); }, []); - const now = useCallback(() => Date.now() + offset, [offset]); + const now = useCallback(() => Date.now() - offset, [offset]); return now; };