mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
Fix timezone bug when clicking heatmap (#15141)
This commit is contained in:
parent
007fb00c0e
commit
9b316a327e
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ func activityQueryCondition(opts GetFeedsOptions) (builder.Cond, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if opts.Date != "" {
|
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 {
|
if err != nil {
|
||||||
log.Warn("Unable to parse %s, filter not applied: %v", opts.Date, err)
|
log.Warn("Unable to parse %s, filter not applied: %v", opts.Date, err)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue