This fix ensures that before aggregating daily/hourly statistics, dates are converted into the local timezone ("flarum-statistics.timezone" in the settings table).