hsun 1 сар өмнө
parent
commit
c8d73ce343

+ 1 - 1
controllers/report_open.go

@@ -816,7 +816,7 @@ func (this *ReportOpenController) ReportKnowledgeUpload() {
 		br.ErrMsg = fmt.Sprintf("参数解析失败,%v", e)
 		return
 	}
-	pushTime, err := time.Parse(utils.FormatDateTime, req.PushTime)
+	pushTime, err := time.ParseInLocation(utils.FormatDateTime, req.PushTime, time.Local)
 	if err != nil {
 		br.Msg = "发布时间格式不正确"
 		return