Skip to content

feat(session): offer the device's time zone to a box on UTC - #115

Open
frahlg wants to merge 1 commit into
mainfrom
household-time-zone
Open

frahlg wants to merge 1 commit into
mainfrom
household-time-zone

Conversation

@frahlg

@frahlg frahlg commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Problem

A Docker box runs on UTC, so a car goal of 17:00 was met at 18:00 in a Stockholm winter. srcfl/ftw#1946 makes the home's time zone a stored fact of the site and adds an op for clients to offer one.

Change

  • Registry: site.time_zone.propose (scope ftw.setup.write), byte-identical with feat(site): the home's time zone is a stored fact of the site ftw#1946.
  • OP_SITE_TIME_ZONE_PROPOSE and SCOPE_SETUP_WRITE.
  • SiteStore offers this device's zone once per box per run when the box's hello says UTC, the device is not on UTC itself, and the grant carries ftw.setup.write. The box decides; it takes the zone only while it keeps none, then restarts, and the next hello names it. A refusal is silent.
  • The sim box answers the op the way Core does.

No visible UI change.

Evidence

  • npm run verify green on this Mac.
  • npm run check:contract against the feat(site): the home's time zone is a stored fact of the site ftw#1946 checkout: registry matches byte for byte.
  • New tests: time-zone-offer.test.ts (who offers what), and site.test.ts "the household clock": a sim box on UTC ends on the device's zone; a box that keeps a zone is left alone. The first fails without this change.

Paired PRs

🤖 Generated with Claude Code

A Docker box keeps no household clock: it runs on UTC, so a car goal of
17:00 was met at 18:00 in a Stockholm winter. When the box's hello says
UTC and this device may change setup, the app offers its own zone once per
box with site.time_zone.propose. The box decides; it takes the zone only
while it keeps none, and restarts to run on it.

Registry copy is byte-identical with srcfl/ftw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T17:14:25.059734Z 0b90e72 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
ftw-webapp 0b90e72 Commit Preview URL

Branch Preview URL
Oct 31 2026, 05:12 PM

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.

1 participant