refactor(docs,blog): last update timestamp should be in milliseconds instead of seconds (#9963)

This commit is contained in:
Sébastien Lorber 2024-03-19 09:51:27 +01:00 committed by GitHub
parent 6c724ed857
commit 465cf4d82c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 35 additions and 29 deletions

View file

@ -23,7 +23,7 @@ import type {
} from '@docusaurus/plugin-content-blog';
import type {DocusaurusConfig} from '@docusaurus/types';
const convertDate = (dateMs: number) => new Date(dateMs * 1000).toISOString();
const convertDate = (dateMs: number) => new Date(dateMs).toISOString();
function getBlogPost(
blogPostContent: PropBlogPostContent,