Skip to content

Commit

Permalink
fix: last update time zone incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Oct 8, 2022
1 parent 154e0a8 commit c07e014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/plugin-mdx/pluginMdxLastUpdated.ts
Expand Up @@ -31,7 +31,7 @@ export function pluginMdxGit(): Plugin {
lastUpdatedTime = cache.get(id)!;
} else {
const rawTime = await getLastUpdatedTime(id);
lastUpdatedTime = new Date(rawTime).toLocaleString();
lastUpdatedTime = new Date(rawTime).toLocaleString('zh-CN');
cache.set(id, lastUpdatedTime);
}

Expand Down

1 comment on commit c07e014

@vercel
Copy link

@vercel vercel bot commented on c07e014 Oct 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.