Repository navigation
docs(jobs): a job body's default locale and time zone are the server's - #29355
Merged
objectstack-fleet[bot] merged 2 commits intoNov 2, 2026
Merged
Conversation
A body's Intl.DateTimeFormat answers with the host's own, so a formatter built with no locale or timeZone uses the server's defaults and its resolvedOptions() reports them. Say so beside the Intl.DateTimeFormat bullet, and tell the author to pass timeZone (and a locale) for output that does not depend on where the body runs. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2gLghEqeDKTbDTC7Zd
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2gLghEqeDKTbDTC7Zd
Contributor
Author
|
domain:devx#2 · marchtian · session_017ihL2gLghEqeDKTbDTC7Zd 席位核对 — ACCEPT ·
|
objectstack-fleet
Bot
deleted the
claude/issue-29202-jobs-intl-default-zone
branch
November 2, 2026 13:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by 田騏 · project thread
Fixes #29202
Clause-②: no
Metadata-protocol: none
维护者速读
jobs.mdx在Intl.DateTimeFormat那条说明里补两句话:不传语言和timeZone时用的是服务器的默认语言和时区,要稳定输出就显式传timeZone(和语言)。content/docs/automation/jobs.mdx第 199–203 行(新增的两句与示例)。Intl.DateTimeFormat那条下应看到 “server's default locale and time zone” 与{ timeZone: 'UTC' }示例。What changes
One addition to the
Intl.DateTimeFormatbullet incontent/docs/automation/jobs.mdx(+5 / -0): a formatter built with no locale ortimeZoneuses the server's default locale and time zone, and itsresolvedOptions()reports them; a body should passtimeZone(and a locale) for output that does not depend on where it runs, withnew Intl.DateTimeFormat('en-US', { timeZone: 'UTC' })as the example. No code change.Tests
None owed: docs only, no tested behaviour changes. The statement was measured before it was written (below).
Acceptance notes
packages/runtime/src/sandbox/sandbox-intl.tssnapshotslocales/options; with neither given the snapshot is empty,readSnapshothandsundefined/undefinedto the host, andinstallSandboxIntlbuildsnew Intl.DateTimeFormat(locales, options)with the host's ownIntl, so the host's defaults apply.QuickJSScriptRunner.execute()inpackages/runtime/src/sandbox/quickjs-runner.tscallsinstallSandboxIntl(vm)for every body kind.content/docs/automation/hooks.mdx,content/docs/automation/hook-bodies.mdx,content/docs/ui/actions.mdx) do not carry theIntl.DateTimeFormatbullet, so there is nothing to mirror there; the jobs bullet already says hook and action bodies get the same formatter.content/docsships in no package'sfiles[], soskip-changeset.Verification
Measured: a no-option formatter answers the host's locale and zone
A scratch script installed
installSandboxIntlinto a fresh QuickJS context (the same callexecute()makes) and evaluatednew Intl.DateTimeFormat().resolvedOptions()and.format(0)inside the VM, beside a formatter given'en-US', { timeZone: 'UTC' }, under three host settings:TZ/ localeresolvedOptions()format(0)format(0)Asia/Tokyo/de_DEde-DE,Asia/Tokyo1.1.19701/1/1970America/New_York/de_DEde-DE,America/New_York31.12.19691/1/1970Asia/Tokyo/en_GBen-GB,Asia/Tokyo01/01/19701/1/1970Each no-option row equals the host's own
new Intl.DateTimeFormat().resolvedOptions()in the same process; the pinned formatter answers the same in all three. The script was not committed.Derived gates at 7dc9c8c (after merging origin/main a2fcede)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 43 commands. All 43 ran, each exit code captured before any pipe: 43 at exit 0. Four first refused with exit 3 (PREREQUISITE NOT MET:@objectstack/lint/@objectstack/formula/@objectstack/client-reactnot built); afterpnpm --filter '@objectstack/lint...' --filter '@objectstack/client-react...' build(VERDICT command-exit 0) each re-ran at exit 0:check:doc-formula-expressions,check:doc-security-posture,check:skill-examples,check:docs-transcript-drift.--ranreconciliation: 43 derived, 43 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero: all 43 recorded an exit code).NOT MEASURED locally, left to CI:
ci.yml · Build Docsandci.yml · Plan Test Core shards, and the type-check lanes the derivation lists.🤖 Generated with Claude Code