fix: update the timezone

This commit is contained in:
2026-07-14 22:22:51 +07:00
parent 1c9efe32a2
commit ece079e71f
22 changed files with 170 additions and 88 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import { VIETNAM_TIME_ZONE } from "open-sse/config/time.js";
// Logger utility for cloud
const LOG_LEVELS = {
@@ -10,7 +12,7 @@ const LOG_LEVELS = {
const LEVEL = LOG_LEVELS[process.env.LOG_LEVEL?.toUpperCase?.()] ?? LOG_LEVELS.INFO;
function formatTime() {
return new Date().toLocaleTimeString("en-US", { hour12: false });
return new Date().toLocaleTimeString("en-US", { timeZone: VIETNAM_TIME_ZONE, hour12: false });
}
// Colored-dot tags to correlate request lines by session (same session → same color)