Show UTC as the first header clock instead of hardcoded Los Angeles time #19

Merged
sneak merged 2 commits from header-utc-clock into next 2026-11-07 05:23:54 +01:00
Collaborator

Problem

The header drew two clocks: the host's local time, then America/Los_Angeles time, hardcoded. On a Mac in that zone both clocks read the same, and neither was UTC. AGENTS.md policy 6 says internal displays show UTC.

Fix

The first clock is now UTC and the second the host's local time. The hardcoded zone and its load-failure fallback are gone. The formatting is pulled into a small pure clockStrings helper so it can be unit-tested; the draw loop is otherwise unchanged.

Verification

  • make test, make fmt, make lint clean.
  • New TestClockStrings renders a CET instant and checks the UTC and local strings.

Out of scope, flagged

The per-pane timestamps (last ping, last drop) still format in host local time. If they should follow the UTC policy too, that is a separate change.

No tracked issue: issue creation was not permitted from the session that made this change.

## Problem The header drew two clocks: the host's local time, then `America/Los_Angeles` time, hardcoded. On a Mac in that zone both clocks read the same, and neither was UTC. AGENTS.md policy 6 says internal displays show UTC. ## Fix The first clock is now UTC and the second the host's local time. The hardcoded zone and its load-failure fallback are gone. The formatting is pulled into a small pure `clockStrings` helper so it can be unit-tested; the draw loop is otherwise unchanged. ## Verification - `make test`, `make fmt`, `make lint` clean. - New `TestClockStrings` renders a CET instant and checks the UTC and local strings. ## Out of scope, flagged The per-pane timestamps (last ping, last drop) still format in host local time. If they should follow the UTC policy too, that is a separate change. No tracked issue: issue creation was not permitted from the session that made this change.
clawbot added 1 commit 2026-11-07 04:12:50 +01:00
The header drew the host's local time and then America/Los_Angeles
time, so on a Mac in that zone both clocks read the same and neither
was UTC. The first clock is now UTC and the second the host's local
time, which also drops the hardcoded zone and its load-failure path.
sneak added 1 commit 2026-11-07 05:23:43 +01:00
Merge branch 'next' into header-utc-clock
check / check (push) Successful in 2m6s
8746591889
sneak merged commit 5b16fd3310 into next 2026-11-07 05:23:54 +01:00
sneak deleted branch header-utc-clock 2026-11-07 05:23:55 +01:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/rtnetmon#19