Browse Source

Fix timezone bug when clicking heatmap (#15141) (#15231)

mj-v1.14.3
mayswind 1 year ago
committed by GitHub
parent
commit
2b68f66e0e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      models/action.go

2
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 {

Loading…
Cancel
Save