Эх сурвалжийг харах

新增研报,新增时间修改

zwxi 7 сар өмнө
parent
commit
9cdb3872d5

+ 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.FormatDate, req.CreateTime, time.Local)
+		createTime, tmpErr := time.ParseInLocation(utils.FormatDateTime, req.CreateTime, time.Local)
 		if tmpErr != nil {
 			br.Msg = "时间解析异常"
 			br.ErrMsg = "时间解析异常,Err:" + err.Error()