GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: Dashboard log timestamps display in browser local timezone instead of system/server time · Issue #725 · lidge-jun/opencodex

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

New issue
Copy link
New issue
Copy link
Closed
Closed
[Bug]: Dashboard log timestamps display in browser local timezone instead of system/server time#725
Copy link
Labels
bugSomething isn't working

Description

@jhste102lab
jhste102lab
opened on Jul 30, 2026
Issue body actions

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-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

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

Activity

  1. github-actions
    added
    bugSomething isn't working
    on Jul 30, 2026
  2. github-actions commented on Jul 30, 2026

    @github-actions
    github-actionsBot
    on Jul 30, 2026 – with GitHub Actions
    Contributor
    More actions

    Automated translation bookkeeping — detected language: unknown.

  3. Wibias commented on Jul 30, 2026

    @Wibias
    Wibias
    on Jul 30, 2026
    Contributor
    More actions

    [shipping-github] Research review

    Claim: Dashboard log timestamps render in the browser timezone via toLocale*, not server/system time.
    Checked against: dev@be177ea5

    Field Finding
    Still an issue on latest development? yes (behavior unchanged); product intent unclear
    Exact issue gui/src/pages/Logs.tsx formatLogTimestamp / formatLogDateTime use toLocaleTimeString / toLocaleString on epoch ms
    Fixed on development? no
    Open PR covering this? none
    Duplicate of? none
    Security relevance none — n/a
    Priority low — UX confusion for remote TZ mismatch; browser-local is common web default
    Verdict Needs fix on development (or explicit docs that browser-local is intentional)

    Evidence: gui/src/pages/Logs.tsx ~283–288; server stores Date.now() epoch and passes raw ms through management DTOs.
    Gaps: No product decision recorded; if intentional, close as not a bug with docs note.

  4. Wibias commented on Jul 30, 2026

    @Wibias
    Wibias
    on Jul 30, 2026
    Contributor
    More actions

    [shipping-github] Opened PR #790 to address this.

  5. lidge-jun
    added a commit that references this issue on Jul 31, 2026

    fix(gui): render dashboard log timestamps in the server's timezone (#725

    a6d472e
  6. lidge-jun commented on Jul 31, 2026

    @lidge-jun
    lidge-jun
    on Jul 31, 2026
    Owner
    More actions

    Fixed on codex/260731-pr-merge-round as a6d472e3f.

    Dashboard log timestamps now render in the zone of the machine running the proxy, not the browser's. /api/settings reports the server's IANA zone and Logs.tsx passes it into formatLogTimestamp / formatLogDateTime; the detail dialog uses the same zone, so one request cannot show two different times on screen at once.

    /api/logs is unchanged — still a bare array — because four suites read it that way. An unknown zone string falls back to browser-local instead of throwing, since a RangeError inside the formatter would take the whole row render down.

    Regression coverage in tests/logs-timezone.test.ts: 00:30 UTC must read 9:30 in Seoul and 12:30 in UTC, so a dropped zone argument surfaces as a wrong hour rather than passing silently. Verified by ablation — removing the server field or the formatter argument each fails a test.

    That branch is a staging line; this reaches dev and a release once the optimization work in flight there lands. PR #790 diagnosed this and is closed in favour of the narrower fix.

  7. lidge-jun
    closed this as completedon Jul 31, 2026
  8. lidge-jun
    added a commit that references this issue on Jul 31, 2026

    fix(gui): gate the timezone setter so a stale response cannot land

    c537dac
  9. agentHits
    added 3 commits that reference this issue on Sep 17, 2026

    fix(gui): render dashboard log timestamps in the server's timezone (l…

    8edb8f3

    test(logs): expect /api/logs envelope in lidge-jun#725 timezone suite

    44d31e9

    fix(gui): gate the timezone setter so a stale response cannot land

    99620bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.