|
@@ -134,7 +134,7 @@ func (l *CronTask) analyze() {
|
|
|
loc, _ := time.LoadLocation("Asia/Shanghai")
|
|
|
now := time.Now().In(loc)
|
|
|
yesterdayEnd := now.Truncate(24 * time.Hour)
|
|
|
- yesterdayStart := yesterdayEnd.AddDate(0, 0, -1)
|
|
|
+ yesterdayStart := yesterdayEnd.AddDate(0, 0, -2)
|
|
|
predicates = append(predicates, usagedetail.CreatedAtGTE(yesterdayStart))
|
|
|
predicates = append(predicates, usagedetail.CreatedAtLT(yesterdayEnd))
|
|
|
|