Repository navigation
fix(base): show dates in one fixed time zone on server and client - #646
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
launchpad | 0a00c87 | Commit Preview URL Branch Preview URL |
Nov 22 2026, 11:12 PM |
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.
Problem
Blog publication dates are stored as UTC midnight. The server rendered them in UTC, but the visitor's browser rendered them in local time. Visitors west of UTC saw the previous day, and the page hydrated with different text than it was served with. Date formatting existed in about eight variants with inconsistent time-zone handling.
Fix
One small formatter in the base layer with an explicit zone: calendar dates such as publication dates are formatted in UTC, real instants such as API timestamps in Europe/Berlin, as the events layer already does. The blog cards, article page, author list, community POI metadata, home carousel cards and the OpenCollective "updated" label use it; the duplicated carousel date logic is gone.
Proposal:
openspec/changes/fix-timezone-safe-dates(#641).Tests
Formatter tests with fixed dates in both locales (independent of the machine's time zone), plus a repository rule that fails when a date call without a time zone is added in
layers/orpages/. Tests, quality gate (no rise) and production build pass.