mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-21 07:27:01 +08:00
Add configurable server timezone
This commit is contained in:
@@ -101,7 +101,7 @@ class Logger {
|
||||
}
|
||||
module = module.toUpperCase();
|
||||
level = level.toUpperCase();
|
||||
const now = new Date().toISOString();
|
||||
const now = dayjs.tz(new Date()).format();
|
||||
const formattedMessage = (typeof msg === "string") ? `${now} [${module}] ${level}: ${msg}` : msg;
|
||||
if (level === "INFO") {
|
||||
console.info(formattedMessage);
|
||||
|
Reference in New Issue
Block a user