修复日志时间计算错误 (#113)

This commit is contained in:
Elegy233 authored and GitHub committed 2025-12-24 22:31:02 +08:00
1 parent 8f2c062426
commit e85efe828f
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ export function log(level, ...args) {
// 获取上海时区时间(UTC+8)
const now = new Date();
const shanghaiTime = new Date(now.getTime() + (8 * 60 * 1000));
const shanghaiTime = new Date(now.getTime() + (8 * 60 * 60 * 1000));
const timestamp = shanghaiTime.toISOString().replace('Z', '+08:00');
globals.logBuffer.push({ timestamp, level, message });