From a2a24b20211c5279a251e63455a0f7c3197a4a5d Mon Sep 17 00:00:00 2001 From: Yesterday17 Date: Fri, 20 Sep 2024 01:42:38 +0800 Subject: [PATCH] fix: use second timestamp for stat --- src/components/Player/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Player/index.tsx b/src/components/Player/index.tsx index e66b14a..84d4f87 100644 --- a/src/components/Player/index.tsx +++ b/src/components/Player/index.tsx @@ -110,7 +110,7 @@ const Player: React.FC = () => { discId, trackId, }, - at: [Math.round(Date.now()) - PLAYBACK_RECORD_DELAY], + at: [Math.round((Math.round(Date.now()) - PLAYBACK_RECORD_DELAY) / 1000)], }); } }, PLAYBACK_RECORD_DELAY);