diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-03-28 09:26:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-28 09:26:31 +0300 |
commit | 7c68bc7dd863fb2266f378d8cef93e929bbc8304 (patch) | |
tree | 328247ef938c3b9bde443048e40119b12cf7e718 /core/Period | |
parent | 1fad2382bd31ff0e0850fec918d8dc7b7aefb77c (diff) |
Fix issue where date ranges might include too many subperiods (#18995)
* Fix issue where date ranges might include too many subperiods when including a magic keyword and a timezone
* more tests
Diffstat (limited to 'core/Period')
-rw-r--r-- | core/Period/Range.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Period/Range.php b/core/Period/Range.php index e6b3ae1357..cdebc2711a 100644 --- a/core/Period/Range.php +++ b/core/Period/Range.php @@ -263,7 +263,7 @@ class Range extends Period if (strpos($strDateEnd, '-') === false) { $timezone = $this->timezone; } - $endDate = Date::factory($strDateEnd, $timezone); + $endDate = Date::factory($strDateEnd, $timezone)->setTime("00:00:00"); } else { throw new Exception($this->translator->translate('General_ExceptionInvalidDateRange', array($this->strDate, ' \'lastN\', \'previousN\', \'YYYY-MM-DD,YYYY-MM-DD\''))); } |