Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Dashboard Logs: timezone mismatch - looks for wrong date file #1343

@colriot

Description

@colriot

Bug Description

The Logs page in the Control Dashboard uses UTC date for the log filename, but the gateway writes logs using local server time.

Steps to Reproduce

  1. Open http://127.0.0.1:18789/logs when local time is near midnight UTC
  2. Example: At 16:01 PST (Jan 20) = 00:01 UTC (Jan 21)
  3. Dashboard looks for: /tmp/clawdbot/clawdbot-2026-01-21.log
  4. Actual file exists at: /tmp/clawdbot/clawdbot-2026-01-20.log

Expected Behavior

Dashboard should use the same timezone as the gateway when determining which log file to display (likely server local time, or allow user to select date).

Actual Behavior

Dashboard shows "No log entries" because it's looking for a file that doesn't exist yet.

Environment

  • Clawdbot version: 2026.1.17-1
  • OS: macOS (arm64)
  • Timezone: America/Los_Angeles (PST, UTC-8)

Workaround

View logs directly:

tail -f /tmp/clawdbot/clawdbot-2026-01-20.log | jq .

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions