Skip to content

Commit 9b316a3

Browse files
authored
Fix timezone bug when clicking heatmap (#15141)
1 parent 007fb00 commit 9b316a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/action.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ func activityQueryCondition(opts GetFeedsOptions) (builder.Cond, error) {
382382
}
383383

384384
if opts.Date != "" {
385-
dateLow, err := time.Parse("2006-01-02", opts.Date)
385+
dateLow, err := time.ParseInLocation("2006-01-02", opts.Date, setting.DefaultUILocation)
386386
if err != nil {
387387
log.Warn("Unable to parse %s, filter not applied: %v", opts.Date, err)
388388
} else {

0 commit comments

Comments
 (0)