server.ts - public logs: minor correction in recorded logs text
This commit is contained in:
parent
dccee1b4e8
commit
79274da1ff
|
@ -108,7 +108,7 @@ function getFileName(year, month){
|
||||||
return 'actions' + (year && month ? "_" + year + "_" + month : "")+".log";
|
return 'actions' + (year && month ? "_" + year + "_" + month : "")+".log";
|
||||||
}
|
}
|
||||||
function formatPrettyLog(log){
|
function formatPrettyLog(log){
|
||||||
return "On " + (log.date ? formatDateAndTime(log.date) : "") + " " /*+ logs[i].action + " "*/ + log.message + "<br>";
|
return "On " + (log.date ? formatDateAndTime(log.date) : "") + " " /*+ logs[i].action + " "*/ + log.message;
|
||||||
}
|
}
|
||||||
function formatDateAndTime(dateStr){
|
function formatDateAndTime(dateStr){
|
||||||
let date = new Date(dateStr);
|
let date = new Date(dateStr);
|
||||||
|
|
Loading…
Reference in New Issue