Commit f9c5e312 authored by hctom's avatar hctom Committed by borisson_

Issue #3009253 by hctom: Date facet with hour granularity builds wrong value...

Issue #3009253 by hctom: Date facet with hour granularity builds wrong value in SearchApiDate::calculateRangeAbsolute()
parent 914b4b35
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment