Skip to content

Commit

Permalink
Fix timezone bug when clicking heatmap (#15141)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind authored Apr 1, 2021
1 parent 007fb00 commit 9b316a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 9b316a3

Please sign in to comment.