diff --git a/routes/index.js b/routes/index.js index c51c366..e2106a8 100644 --- a/routes/index.js +++ b/routes/index.js @@ -49,7 +49,7 @@ router.post('/deploy', function(req, res, next) { //提交日志,多次提交只取第一个 const commitsMsg=req.body.commits[0].message //更新时间 - const updated_at= moment(req.body.repository.updated_at).utcOffset(480).format('yyyy-MM-DD HH:mm:ss') + const updated_at= moment(req.body.repository.updated_at).format('yyyy-MM-DD HH:mm:ss') //仓库名字 const name=req.body.repository.name //仓库描述信息