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
904c5213dd
commit
821392f346
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{
|
||||
Level: logLevelNames[level],
|
||||
Timestamp: time.Now().UTC().Format(time.RFC3339),
|
||||
Timestamp: time.Now().Format(time.RFC3339),
|
||||
Component: component,
|
||||
Message: message,
|
||||
Fields: fields,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue