diff --git a/src/pages/api/youtube-stream-chat.ts b/src/pages/api/youtube-stream-chat.ts index e196427..a588a6a 100644 --- a/src/pages/api/youtube-stream-chat.ts +++ b/src/pages/api/youtube-stream-chat.ts @@ -258,8 +258,7 @@ function parseLiveChatMessage(msg: any, emoteMap: Map): Ch } } - // YouTube timestamps might already be in milliseconds - // Test both formats to see which one matches server time + // YouTube timestamps might already be in millisecond const rawTimestamp = parseInt(msg.timestamp); const asMillisecondsDirectly = new Date(rawTimestamp); const asUsToMs = new Date(rawTimestamp / 1000);