Skip to content

Fix memo date hydration mismatch - #55

Merged
xrendan merged 1 commit into
mainfrom
fix/deterministic-memo-dates
Aug 10, 2026
Merged

Fix memo date hydration mismatch#55
xrendan merged 1 commit into
mainfrom
fix/deterministic-memo-dates

Conversation

@xrendan

@xrendan xrendan commented Aug 10, 2026

Copy link
Copy Markdown
Member

Summary

  • format memo publication dates in the Toronto timezone
  • prevent server/client timezone differences that trigger React hydration error #418 on the homepage
  • keep the existing locale formatting with a one-line functional change

Context

PostHog issue: https://us.posthog.com/error_tracking/019e8abf-6872-7cb3-9d6e-f25fa20cd3bb

The affected homepage renders memo cards inside the FeaturedMemos client boundary. Without an explicit timezone, Node and iOS Safari could format the same timestamp as different calendar dates during SSR and hydration.

Verification

  • pnpm exec tsc --noEmit
  • pnpm exec eslint src/components/ui/memo-card.tsx
  • git diff --check origin/main...HEAD

@xrendan
xrendan force-pushed the fix/deterministic-memo-dates branch from bc41356 to d888008 Compare August 10, 2026 22:15
@xrendan
xrendan merged commit bba7767 into main Aug 10, 2026
1 check 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.

1 participant