xyxie 2 mesiacov pred
rodič
commit
ff243b4be3
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      models/predict_edb_info_rule.go

+ 1 - 1
models/predict_edb_info_rule.go

@@ -1254,7 +1254,7 @@ func getCalculateNhccData(secondDataList []*EdbInfoSearchData, ruleConf RuleLine
 	if ruleConf.DateType == 0 {
 		endDate, _ = time.ParseInLocation(utils.FormatDate, ruleConf.EndDate, time.Local)
 	} else {
-		endDate = time.Now()
+		endDate, _ = time.ParseInLocation(utils.FormatDate, time.Now().Format(utils.FormatDate), time.Local)
 	}
 
 	//查询当前指标现有的数据