|
|
|
@@ -345,8 +345,9 @@ func QueryUserStaticCurrentMonth(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
func getStartTime(pageStartTime time.Time) time.Time { |
|
|
|
t, _ := time.ParseInLocation("2006-01-02", setting.RadarMap.GrowthBeginTime, time.UTC) |
|
|
|
//t = time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 1, t.UTC().Location()) |
|
|
|
t, _ := time.ParseInLocation("2006-01-02", setting.RadarMap.GrowthBeginTime, time.Local) |
|
|
|
t = t.UTC() |
|
|
|
log.Info("t.time=" + fmt.Sprint(t.Unix())) |
|
|
|
if pageStartTime.Before(t) { |
|
|
|
pageStartTime = t |
|
|
|
} |
|
|
|
|