fix: use local time for log timestamps instead of UTC
Mini App substring-slices the RFC3339 timestamp to show HH:MM:SS, so UTC caused a 9-hour offset on JST hosts. Local time is the natural choice for a personal device's log viewer. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5bebfce972
commit
b5fda32416
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ func logMessage(level LogLevel, component string, message string, fields map[str
|
||||||
|
|
||||||
entry := LogEntry{
|
entry := LogEntry{
|
||||||
Level: logLevelNames[level],
|
Level: logLevelNames[level],
|
||||||
Timestamp: time.Now().UTC().Format(time.RFC3339),
|
Timestamp: time.Now().Format(time.RFC3339),
|
||||||
Component: component,
|
Component: component,
|
||||||
Message: message,
|
Message: message,
|
||||||
Fields: fields,
|
Fields: fields,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue