Fix timeslider datetime is wrong on new changes (#6651)

This commit is contained in:
Stefan Müller 2024-09-10 20:01:19 +00:00 committed by GitHub
parent 9c21522bc0
commit 113884d071
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -1153,7 +1153,7 @@ const getChangesetInfo = async (pad: PadType, startNum: number, endNum:number, g
// Get all needed revision Dates.
...revTimesNeeded.map(async (revNum) => {
const revDate = await pad.getRevisionDate(revNum);
revisionDate[revNum] = Math.floor(revDate / 1000);
revisionDate[revNum] = revDate;
}),
]);

View file

@ -186,7 +186,7 @@ const loadBroadcastJS = (socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
mutateTextLines(changeset, padContents);
padContents.currentRevision = revision;
padContents.currentTime += timeDelta * 1000;
padContents.currentTime += timeDelta;
updateTimer();