php-reports
php-reports copied to clipboard
Daterange, default values overwrite Today
Hi there,
I have configured a report with daterange variable like this:
VARIABLE: { "name": "range", "type": "daterange", "default": { "start": "-1 year", "end": "now" }, display: "Time range" }
When I open the report the first time, default values are loaded as expected. But when I click on today, it reverts to default (in my case 1 year range).
Work around is to click on yesterday (or any other time range) and then back to today, then range will effectively be for "today".
Could this be a bug?
Cheers,