Skip to content

Fix: make blog display the correct blog date - #388

Merged
tuhaihe merged 1 commit into
apache:mainfrom
tuhaihe:fix-blog-date
Jul 22, 2026
Merged

Fix: make blog display the correct blog date#388
tuhaihe merged 1 commit into
apache:mainfrom
tuhaihe:fix-blog-date

Conversation

@tuhaihe

@tuhaihe tuhaihe commented Jul 20, 2026

Copy link
Copy Markdown
Member

After upgrading to Docusaurus v3.10.2, the formattedDate field is no longer available in BlogPostMetadata. The standard Docusaurus approach uses useDateTimeFormat() from @docusaurus/theme-common/internal to format the raw date string.

closes: #ISSUE_Number


Change logs

Describe your change clearly, including what problem is being solved or what document is being added or updated.

Contributor's checklist

Here are some reminders before you submit your pull request:

After upgrading to Docusaurus v3.10.2, the `formattedDate` field is no
longer available in `BlogPostMetadata`. The standard Docusaurus approach
uses `useDateTimeFormat()` from `@docusaurus/theme-common/internal` to
format the raw `date` string.
@tuhaihe
tuhaihe merged commit e433d50 into apache:main Jul 22, 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.

2 participants