Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2022-03-28 09:26:31 +0300
committerGitHub <noreply@github.com>2022-03-28 09:26:31 +0300
commit7c68bc7dd863fb2266f378d8cef93e929bbc8304 (patch)
tree328247ef938c3b9bde443048e40119b12cf7e718 /core
parent1fad2382bd31ff0e0850fec918d8dc7b7aefb77c (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')
-rw-r--r--core/Period/Range.php2
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\'')));
}