mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Fix timeslider datetime is wrong on new changes (#6651)
This commit is contained in:
parent
9c21522bc0
commit
113884d071
2 changed files with 2 additions and 2 deletions
|
@ -1153,7 +1153,7 @@ const getChangesetInfo = async (pad: PadType, startNum: number, endNum:number, g
|
||||||
// Get all needed revision Dates.
|
// Get all needed revision Dates.
|
||||||
...revTimesNeeded.map(async (revNum) => {
|
...revTimesNeeded.map(async (revNum) => {
|
||||||
const revDate = await pad.getRevisionDate(revNum);
|
const revDate = await pad.getRevisionDate(revNum);
|
||||||
revisionDate[revNum] = Math.floor(revDate / 1000);
|
revisionDate[revNum] = revDate;
|
||||||
}),
|
}),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -186,7 +186,7 @@ const loadBroadcastJS = (socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro
|
||||||
|
|
||||||
mutateTextLines(changeset, padContents);
|
mutateTextLines(changeset, padContents);
|
||||||
padContents.currentRevision = revision;
|
padContents.currentRevision = revision;
|
||||||
padContents.currentTime += timeDelta * 1000;
|
padContents.currentTime += timeDelta;
|
||||||
|
|
||||||
updateTimer();
|
updateTimer();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue