Browse Source

新增研报,时间格式兼容

zwxi 7 tháng trước cách đây
mục cha
commit
3f530784d2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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.Stage = maxStage + 1
 	item.ContentSub = html.EscapeString(contentSub)
 	item.ContentSub = html.EscapeString(contentSub)
 	if req.CreateTime != `` {
 	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 {
 		if tmpErr != nil {
 			br.Msg = "时间解析异常"
 			br.Msg = "时间解析异常"
 			br.ErrMsg = "时间解析异常,Err:" + err.Error()
 			br.ErrMsg = "时间解析异常,Err:" + err.Error()