Skip to content

Dates and times in replies are formatted by the message guest - #178

Merged
github-actions[bot] merged 4 commits into
mainfrom
claude/project-thread-ydg27y
Nov 16, 2026
Merged

github-actions[bot] merged 4 commits into
mainfrom
claude/project-thread-ydg27y

Conversation

@afflom

@afflom afflom commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Requested by Alex · project thread

What

Third slice of the chat remodel. A reply's day, time and full date were written by three browser Intl formatters in site/router/answer.mjs. They are now parts of the sentence provider's MessageFormat 2 messages in app/specs/router/spec.json, formatted by the message guest that holds all 461 tests of Unicode's suite (on main since #167).

  • when takes the instant and formats it with :date fields=month-day-weekday length=medium and :time precision=minute; now with :datetime dateFields=year-month-day-weekday dateLength=long timePrecision=minute.
  • A part named at is an instant; the request carries the offset the browser keeps at that instant, so daylight saving is the browser's.
  • The wording is CLDR's. For en it is the same text as before, except the space before AM and PM, which CLDR gives as the narrow no-break space and V8 writes as a plain one. test/time/order.test.mjs follows that.
  • Replies are English sentences, so their dates are now English too, not the browser locale's.
  • Three formatters leave the hand-written code (HW-01: none added or grown).

Checked

site/router/*.test.mjs and test/time/*.test.mjs pass in UTC, America/New_York, America/Los_Angeles, Asia/Kolkata and Australia/Adelaide. Gates run locally: GN-01, realizability, coherence, prompts, ST-01, HW-01.


Generated by Claude Code

The reply's day, time and full date were written by the browser's Intl
formatters. They are now parts of the sentence provider's MessageFormat 2
messages (:date, :time, :datetime), formatted by the message guest that
holds Unicode's suite, in the wall time the browser keeps at that instant.
The wording is CLDR's, so the space before AM and PM is the narrow
no-break one.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3QJd7xb3e68VpYTus2
@afflom afflom self-assigned this Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Merge train notice: the merge train merges this pull request once it is green on current main; don't enable auto-merge.


Generated by Claude Code

The newest turn was brought into view before its sources and its decision
were added, so in a log taller than its box the Keep button sat below the
fold (seen on the published page). It is now brought into view after them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Asa3QJd7xb3e68VpYTus2
@github-actions

Copy link
Copy Markdown
Contributor

Merge train: 9395f47: not merged, because its check "page / gates" ended failure on this head, so it is not green; push to this branch to run it again. Fix it on this branch (merge main first) and the train tests it again.


Generated by Claude Code

afflom commented Nov 16, 2026

Copy link
Copy Markdown
Owner Author

page / gates on 9395f47 failed on two time budgets in the same run, neither in code this pull request touches:

Everything else in the run passed, including Lighthouse, the journeys and the chat acceptances. The merge of main re-runs the checks on a new head.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

Merge train: 6e7a037: not merged, because its check "page / gates" ended failure on this head, so it is not green; push to this branch to run it again. Fix it on this branch (merge main first) and the train tests it again.


Generated by Claude Code

@github-actions
github-actions Bot merged commit 4ed70df into main Nov 16, 2026
7 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Live: this change is on the published page, as main fe7ec040132bcad07dcfafb0fa4dc2b07cd86c78.

The publish job opened the published page in a fresh Chromium and its live checks passed (PG-01, PD-01, PD-02): https://github.com/afflom/me/actions/runs/43977249372

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants