From be9b7b8a3c2478896251a98e4635861b61cb1785 Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Sun, 20 Nov 2022 16:37:19 -0600 Subject: [PATCH] Fix loading chat for non-UTC timestamps in restreamer --- thrimbletrimmer/scripts/common.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/thrimbletrimmer/scripts/common.js b/thrimbletrimmer/scripts/common.js index 80b45af..e6d36ed 100644 --- a/thrimbletrimmer/scripts/common.js +++ b/thrimbletrimmer/scripts/common.js @@ -516,11 +516,13 @@ function triggerDownload(url, filename) { } function sendChatLogLoadData() { - const startTime = globalStartTimeString; - const endTime = globalEndTimeString; + let startTime = getStartTime(); + let endTime = getEndTime(); if (!startTime || !endTime) { return; } + startTime = wubloaderTimeFromDateTime(startTime); + endTime = wubloaderTimeFromDateTime(endTime); const segmentMetadata = getSegmentTimes(); for (const segmentData of segmentMetadata) { segmentData.rawStart = segmentData.rawStart.toMillis();