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
- Start
ocx with the management API enabled
- Open the dashboard in a browser that has a different timezone than the server
- Navigate to the
#logs tab
- 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-274 — Date.now() for log IDs, src/server/request-log.ts:694 — start 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
Client or integration
OpenCodex dashboard
Area
Dashboard
Summary
Log timestamps in the Dashboard (
#logstab) are stored as server-sideDate.now()epoch milliseconds but rendered usingtoLocaleTimeString()/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
ocxwith the management API enabled#logstabSource references
src/server/request-log.ts:272-274—Date.now()for log IDs,src/server/request-log.ts:694—startfield set to wall-clock server timesrc/server/management/shared.ts:143-162— raw epoch ms passed to API responsegui/dist/assets/index-cmds12BG.jsfunctionsbc(),xc(),Gs(),Ks()— all usenew Date(e).toLocaleTimeString(locale)/.toLocaleString(locale), which formats in browser local timezoneExpected 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