Skip to content

docs: clarify local-time semantics of anchor dates - #50

Merged
afonsojramos merged 1 commit into
mainfrom
issue-49
Aug 26, 2026
Merged

docs: clarify local-time semantics of anchor dates#50
afonsojramos merged 1 commit into
mainfrom
issue-49

Conversation

@afonsojramos

Copy link
Copy Markdown
Owner

The docs now spell out the timezone contract for anchor dates: the controlled date prop is read in the device's local time zone, so a UTC-midnight instant falls on the previous local day west of UTC and builds the wrong week. The time-zones guide gains an "Anchor dates are local" section with that repro, the API reference notes it on the date row, and both renderers' date prop now documents it in JSDoc so the contract surfaces in editor tooltips. Normalizing internally instead was rejected: startOfDay keeps a UTC-midnight instant on the previous local day, and a heuristic that reinterprets such instants as date-only values would silently change paging for existing callers.

Closes #49

@mintlify

mintlify Bot commented Aug 26, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
super-calendar 🟢 Ready View Preview Aug 26, 2026, 4:33 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@afonsojramos
afonsojramos merged commit d1b3e87 into main Aug 26, 2026
4 checks passed
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.

docs: clarify expected timezone semantics of the controlled date prop / anchor dates

1 participant