Fix loading chat for non-UTC timestamps in restreamer

pull/342/head
ElementalAlchemist 2 years ago committed by Mike Lang
parent d2bcff3ffd
commit be9b7b8a3c

@ -516,11 +516,13 @@ function triggerDownload(url, filename) {
} }
function sendChatLogLoadData() { function sendChatLogLoadData() {
const startTime = globalStartTimeString; let startTime = getStartTime();
const endTime = globalEndTimeString; let endTime = getEndTime();
if (!startTime || !endTime) { if (!startTime || !endTime) {
return; return;
} }
startTime = wubloaderTimeFromDateTime(startTime);
endTime = wubloaderTimeFromDateTime(endTime);
const segmentMetadata = getSegmentTimes(); const segmentMetadata = getSegmentTimes();
for (const segmentData of segmentMetadata) { for (const segmentData of segmentMetadata) {
segmentData.rawStart = segmentData.rawStart.toMillis(); segmentData.rawStart = segmentData.rawStart.toMillis();

Loading…
Cancel
Save