Browse Source

指标期数位移-预测指标

gmy 5 months ago
parent
commit
6794b8d51a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/common.go

+ 1 - 1
utils/common.go

@@ -1649,7 +1649,7 @@ func adjustToNearestDekad(date time.Time) time.Time {
 	// 这里有些无可奈何了,暂时这么写吧。。。需要跟据润 平年根据每个月进行单独处理
 	if day > 5 && day <= 11 {
 		return time.Date(date.Year(), date.Month(), 10, 0, 0, 0, 0, date.Location())
-	} else if day <= 21 {
+	} else if day > 11 && day <= 21 {
 		return time.Date(date.Year(), date.Month(), 20, 0, 0, 0, 0, date.Location())
 	} else {
 		return time.Date(date.Year(), date.Month(), lastDayOfMonth, 0, 0, 0, 0, date.Location())