diff options
author | mayswind <i@mayswind.net> | 2021-04-01 18:22:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 18:22:54 +0800 |
commit | 2b68f66e0e0cb51fb7fed92979ac3ddab40be499 (patch) | |
tree | 927ac7b9d6f245d6f64cd2c1b7027d61f960a7dc | |
parent | 5c7d30cf521a66ecab7aa95ee2713785957604c1 (diff) | |
download | gitea-2b68f66e0e0cb51fb7fed92979ac3ddab40be499.tar.gz gitea-2b68f66e0e0cb51fb7fed92979ac3ddab40be499.zip |
Fix timezone bug when clicking heatmap (#15141) (#15231)
-rw-r--r-- | models/action.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go index 49a6efdc98..2a84133bf8 100644 --- a/models/action.go +++ b/models/action.go @@ -382,7 +382,7 @@ func activityQueryCondition(opts GetFeedsOptions) (builder.Cond, error) { } if opts.Date != "" { - dateLow, err := time.Parse("2006-01-02", opts.Date) + dateLow, err := time.ParseInLocation("2006-01-02", opts.Date, setting.DefaultUILocation) if err != nil { log.Warn("Unable to parse %s, filter not applied: %v", opts.Date, err) } else { |