Statistics: Sum of new during period is 0 for custom date range
Author: claudiushCreated Aug 25, 2026Updated Aug 25, 2026
Labelstype/bug
Current Behavior
When selecting a custom date range for the Statistics graph the "New during range" cells always show 0 :(
Steps to Reproduce
- Open "Statistics" in admin
- Select a custom date range
- Observe the value fields in the mini stats table on top left
Expected Behavior
Selecting a custom date range should calculate the sum of new items per each data type (user, discussions, posts) that occured during that custom range. This would be consistent with how this Statistics works with the pre-defined date ranges.
Screenshots
Environment
- Flarum version: 1.8.19 (I don't have a 2.0.0-rc.7 community with sufficient historic data. Worth checking on Discuss' Statistics
Output of php flarum info
No response
Possible Solution
No response
Additional Context
No response
Source: flarum/framework