fix(server): use iso date string as history query input (#5035)

This commit is contained in:
liuyi 2023-11-23 01:59:08 +00:00
parent ca07b143ef
commit 3710bcdc14
No known key found for this signature in database
GPG Key ID: 56709255DC7EC728

View File

@ -119,12 +119,7 @@ export class WorkspacesController {
const docId = new DocID(guid, ws);
let ts;
try {
const timeNum = parseInt(timestamp);
if (Number.isNaN(timeNum)) {
throw new Error('Invalid timestamp');
}
ts = new Date(timeNum);
ts = new Date(timestamp);
} catch (e) {
throw new Error('Invalid timestamp');
}