server.ts - public logs: minor correction in recorded logs text

This commit is contained in:
argirok 2024-01-09 18:24:48 +02:00
parent dccee1b4e8
commit 79274da1ff
1 changed files with 1 additions and 1 deletions

View File

@ -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);