summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authormayswind <i@mayswind.net>2021-04-01 18:52:17 +0800
committerGitHub <noreply@github.com>2021-04-01 12:52:17 +0200
commit9b316a327e900bcef969795e0e563051cc8c4f1b (patch)
tree28f3bf7b61f68ba3aa094d369520a0cc1d83bcf1 /models
parent007fb00c0ec613b89e2a272f224b60c174fc78bd (diff)
downloadgitea-9b316a327e900bcef969795e0e563051cc8c4f1b.tar.gz
gitea-9b316a327e900bcef969795e0e563051cc8c4f1b.zip
Fix timezone bug when clicking heatmap (#15141)
Diffstat (limited to 'models')
-rw-r--r--models/action.go2
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 {