Skip to content

Conversation

@X-maden
Copy link
Contributor

@X-maden X-maden commented Dec 19, 2025

What this PR does / why we need it

  • Markdown content pages (e.g. blog posts) use a YYYY-MM-DD date field in frontmatter.
    Previously, these dates were parsed using new Date(dateString), which treats the value as UTC midnight.
    This caused posts to appear one day earlier for users in time zones behind UTC.
  • This PR fixes the issue by parsing frontmatter dates as local calendar dates instead of UTC timestamps, ensuring that the displayed publish date always matches the date specified by the author, regardless of user time zone.

Which issue(s) this PR fixes
#12

@fredxfred
Copy link
Contributor

can you fix the code formatting?

@X-maden
Copy link
Contributor Author

X-maden commented Dec 22, 2025

fixed

@ben-fultz ben-fultz merged commit 421907d into accretional:main Jan 14, 2026
2 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.

3 participants