summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhctom2018-10-31 09:21:27 (GMT)
committerJoris Vercammen2018-10-31 09:21:27 (GMT)
commitf9c5e312407bf74303190b9e4885a7113971407e (patch)
tree0384ae40f8c3af1b8677f090b0df9abf4f5b2471
parent914b4b35d68fe8460e8c48515981f76b589f178b (diff)
Issue #3009253 by hctom: Date facet with hour granularity builds wrong value in SearchApiDate::calculateRangeAbsolute()
-rw-r--r--src/Plugin/facets/query_type/SearchApiDate.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Plugin/facets/query_type/SearchApiDate.php b/src/Plugin/facets/query_type/SearchApiDate.php
index 92f0719..40d2012 100644
--- a/src/Plugin/facets/query_type/SearchApiDate.php
+++ b/src/Plugin/facets/query_type/SearchApiDate.php
@@ -116,8 +116,8 @@ class SearchApiDate extends QueryTypeRangeBase {
break;
case static::FACETAPI_DATE_HOUR:
- $startDate = $dateTime::createFromFormat('Y-m-d\TH:i:s', $value . '00:00');
- $stopDate = $dateTime::createFromFormat('Y-m-d\TH:i:s', $value . '59:59');
+ $startDate = $dateTime::createFromFormat('Y-m-d\TH:i:s', $value . ':00:00');
+ $stopDate = $dateTime::createFromFormat('Y-m-d\TH:i:s', $value . ':59:59');
break;
case static::FACETAPI_DATE_MINUTE: