nodejs: fix datetime format in history (56e46466b2) (Fix Bug 64155)

This commit is contained in:
Sergey Linnik
2023-10-09 13:30:49 +03:00
parent 152083ed4e
commit 847e4ce6d9

View File

@ -154,7 +154,7 @@ DocManager.prototype.saveFileData = function saveFileData(fileName, userid, user
const minutes = (dateCreate.getMinutes() < 10 ? '0' : '') + dateCreate.getMinutes().toString();
const month = (dateCreate.getMonth() < 10 ? '0' : '') + (parseInt(dateCreate.getMonth().toString(), 10) + 1);
const sec = (dateCreate.getSeconds() < 10 ? '0' : '') + dateCreate.getSeconds().toString();
const dateFormat = `${dateCreate.getFullYear()}-${month}-${dateCreate.getDate()}`
const dateFormat = `${dateCreate.getFullYear()}-${month}-${dateCreate.getDate()} `
+ `${dateCreate.getHours()}:${minutes}:${sec}`;
const fileInfo = this.historyPath(fileName, address, true); // get file history information