瀏覽代碼

新增研报,时间格式兼容

zwxi 7 月之前
父節點
當前提交
3f530784d2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/report_v2.go

+ 1 - 1
controllers/report_v2.go

@@ -453,7 +453,7 @@ func (this *ReportController) Add() {
 	item.Stage = maxStage + 1
 	item.ContentSub = html.EscapeString(contentSub)
 	if req.CreateTime != `` {
-		createTime, tmpErr := time.ParseInLocation(utils.FormatDateTime, req.CreateTime, time.Local)
+		createTime, tmpErr := time.ParseInLocation(utils.FormatDate, req.CreateTime, time.Local)
 		if tmpErr != nil {
 			br.Msg = "时间解析异常"
 			br.ErrMsg = "时间解析异常,Err:" + err.Error()