Fix timestamps.

This commit is contained in:
bʰedoh₂ swé 2024-12-21 03:11:15 +05:00
parent e671e502c3
commit 161e938c49

View File

@ -15,7 +15,7 @@ const port = Number(process.argv[3]);
function msgToString(time: Date, address: string, msg: string) {
return "[" + time.getDate() + "." + (time.getMonth() + 1) + "." + time.getFullYear() +
" " + time.getHours() + ":" + time.getMinutes() +
" " + String(time.getHours()).padStart(2, '0') + ":" + String(time.getMinutes()).padStart(2, '0') +
"] {" + address + "} "
+ msg;
}