Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.5.1^2
zouap 3 years ago
parent
commit
7e08b33a86
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/user_data_analysis.go

+ 1
- 1
routers/repo/user_data_analysis.go View File

@@ -346,7 +346,7 @@ func QueryUserStaticCurrentMonth(ctx *context.Context) {

func getStartTime(pageStartTime time.Time) time.Time {
t, _ := time.Parse("2006-01-02", setting.RadarMap.GrowthBeginTime)
t = time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 1, t.Location())
t = time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 1, t.UTC().Location())
if pageStartTime.Before(t) {
pageStartTime = t
}


Loading…
Cancel
Save