Skip to content
Discussion options

You must be logged in to vote

thank you for your reply! I found the reason!
I added "lastUpdated: true" to the frontmatter of the markdown file.
I create another file without adding this key-value pair. After submitting, the correct time is displayed on the page.
Moreover, the last updated timestamp obtained using "useData" is correct.
It is because "lastUpdated: true" is added to frontmatter that the time on the page is displayed incorrectly.
Is this a bug? It seems to me that the description in the documentation is not accurate:
https://vitepress.dev/reference/frontmatter-config#lastupdated

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Anh-bro
Comment options

Answer selected by Anh-bro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants