From 516459395c9aaae84637791beeab736fc961d639 Mon Sep 17 00:00:00 2001 From: Tarun Sukhani Date: Fri, 6 Feb 2026 23:25:13 +0800 Subject: [PATCH] updated time --- src/logging/subsystem.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/logging/subsystem.ts b/src/logging/subsystem.ts index 14155430c7d..76174281d9c 100644 --- a/src/logging/subsystem.ts +++ b/src/logging/subsystem.ts @@ -175,11 +175,15 @@ function formatConsoleLine(opts: { : color.cyan; const displayMessage = stripRedundantSubsystemPrefixForConsole(opts.message, displaySubsystem); const time = (() => { + const now = new Date(); if (opts.style === "pretty") { - return color.gray(new Date().toISOString().slice(11, 19)); + const h = String(now.getHours()).padStart(2, "0"); + const m = String(now.getMinutes()).padStart(2, "0"); + const s = String(now.getSeconds()).padStart(2, "0"); + return color.gray(`${h}:${m}:${s}`); } if (loggingState.consoleTimestampPrefix) { - return color.gray(new Date().toISOString()); + return color.gray(now.toLocaleString("sv-SE", { timeZoneName: "short" }).replace(" ", "T")); } return ""; })();