1
1
mirror of https://github.com/go-gitea/gitea synced 2024-10-31 15:24:25 +00:00

Fix timezone bug when clicking heatmap (#15141)

This commit is contained in:
mayswind 2021-04-01 18:52:17 +08:00 committed by GitHub
parent 007fb00c0e
commit 9b316a327e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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