aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormayswind <i@mayswind.net>2021-04-01 18:22:54 +0800
committerGitHub <noreply@github.com>2021-04-01 18:22:54 +0800
commit2b68f66e0e0cb51fb7fed92979ac3ddab40be499 (patch)
tree927ac7b9d6f245d6f64cd2c1b7027d61f960a7dc
parent5c7d30cf521a66ecab7aa95ee2713785957604c1 (diff)
downloadgitea-2b68f66e0e0cb51fb7fed92979ac3ddab40be499.tar.gz
gitea-2b68f66e0e0cb51fb7fed92979ac3ddab40be499.zip
Fix timezone bug when clicking heatmap (#15141) (#15231)
-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 {