From 2b68f66e0e0cb51fb7fed92979ac3ddab40be499 Mon Sep 17 00:00:00 2001 From: mayswind Date: Thu, 1 Apr 2021 18:22:54 +0800 Subject: [PATCH] Fix timezone bug when clicking heatmap (#15141) (#15231) --- models/action.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/action.go b/models/action.go index 49a6efdc9..2a84133bf 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 {