提交 30a22f78 编写于 作者: Miykael_xxm's avatar Miykael_xxm 🚴

fix time format

上级 b9060c9e
...@@ -79,7 +79,19 @@ module.exports = { ...@@ -79,7 +79,19 @@ module.exports = {
hostname: "https://dev-cloud.gitcode.host/spring/", hostname: "https://dev-cloud.gitcode.host/spring/",
// 排除无实际内容的页面 // 排除无实际内容的页面
exclude: ["/404.html"] exclude: ["/404.html"]
}] }],
[
'@vuepress/last-updated',
{
transformer: (timestamp, lang) => {
//return (new Date(timestamp)).toUTCString() 或者用下面这段
// 不要忘了安装 moment
const moment = require('moment')
moment.locale(lang)
return moment(timestamp).toString()
}
}
]
], ],
themeConfig: { themeConfig: {
repo: "https://gitcode.net/dev-cloud/spring", repo: "https://gitcode.net/dev-cloud/spring",
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
"vuepress-plugin-autometa": "^0.1.13" "vuepress-plugin-autometa": "^0.1.13"
}, },
"dependencies": { "dependencies": {
"moment": "^2.29.1",
"vuepress-plugin-sitemap": "^2.3.1" "vuepress-plugin-sitemap": "^2.3.1"
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册