diff options
author | mayswind <i@mayswind.net> | 2021-04-01 18:52:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 12:52:17 +0200 |
commit | 9b316a327e900bcef969795e0e563051cc8c4f1b (patch) | |
tree | 28f3bf7b61f68ba3aa094d369520a0cc1d83bcf1 /models | |
parent | 007fb00c0ec613b89e2a272f224b60c174fc78bd (diff) | |
download | gitea-9b316a327e900bcef969795e0e563051cc8c4f1b.tar.gz gitea-9b316a327e900bcef969795e0e563051cc8c4f1b.zip |
Fix timezone bug when clicking heatmap (#15141)
Diffstat (limited to 'models')
-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 { |