mirror of
https://github.com/DanielSiepmann/tracking.git
synced 2024-12-26 09:26:09 +01:00
Take current day into account for page views per day
This commit is contained in:
parent
b1a7226ed8
commit
2e718d41c9
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class PageViewsBar extends AbstractBarChartWidget
|
|||
|
||||
$format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] ?: 'Y-m-d';
|
||||
|
||||
for ($daysBefore = $days; $daysBefore > 0; $daysBefore--) {
|
||||
for ($daysBefore = $days; $daysBefore >= 0; $daysBefore--) {
|
||||
$labels[] = date($format, strtotime('-' . $daysBefore . ' day'));
|
||||
$startPeriod = strtotime('-' . $daysBefore . ' day 0:00:00');
|
||||
$endPeriod = strtotime('-' . $daysBefore . ' day 23:59:59');
|
||||
|
|
Loading…
Reference in a new issue