There is an off-by-one error in Month select in Statistics selection

Created on 21 June 2025, 17 days ago

Problem/Motivation

When the Month select option is May, the June stats are displayed.

Steps to reproduce

Simply go to /admin/reports/bawstats

Proposed resolution

In BawstatsViewStatsForm.php:137, $timezone cannot be NULL otherwise the timezone defaults to the user's timezone. Therefore it must be explicit i.e. $timezone = 'UTC';

Remaining tasks

I will provide a patch shortly.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada bisonbleu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024