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

fix time format

上级 b9060c9e
......@@ -79,7 +79,19 @@ module.exports = {
hostname: "https://dev-cloud.gitcode.host/spring/",
// 排除无实际内容的页面
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: {
repo: "https://gitcode.net/dev-cloud/spring",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册