Skip to content

[Bug]: Dashboard log timestamps display in browser local timezone instead of system/server time #725

Description

@jhste102lab

Client or integration

OpenCodex dashboard

Area

Dashboard

Summary

Log timestamps in the Dashboard (#logs tab) are stored as server-side Date.now() epoch milliseconds but rendered using toLocaleTimeString() / toLocaleString(), which converts them to the browser local timezone. For a local management dashboard expected to reflect the server state, this can cause confusion if the browser and server are in different timezones (e.g., remote access or containerized deployments).

Reproduction

  1. Start ocx with the management API enabled
  2. Open the dashboard in a browser that has a different timezone than the server
  3. Navigate to the #logs tab
  4. Observe that timestamps reflect the browser timezone, not the system/server timezone where opencodex is running

Source references

  • Timestamp source: src/server/request-log.ts:272-274Date.now() for log IDs, src/server/request-log.ts:694start field set to wall-clock server time
  • Timestamp DTO passthrough: src/server/management/shared.ts:143-162 — raw epoch ms passed to API response
  • Display: gui/dist/assets/index-cmds12BG.js functions bc(), xc(), Gs(), Ks() — all use new Date(e).toLocaleTimeString(locale) / .toLocaleString(locale), which formats in browser local timezone

Expected behavior

Unclear whether this is intentional. If intentional (browser-local time is the standard web UX pattern), it is acceptable. If the intent is to show system/server time (since opencodex is a server-side tool and the dashboard is a management interface), the display should use a fixed timezone or UTC formatting.

Version

2.7.43

Operating system

Linux (WSL)

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions