Skip to content

Commit be01236

Browse files
committed
MAGETWO-35334: Order Total Report: Exception when Show By=Year, displays nothing when Show By=Day
1 parent 9aaa393 commit be01236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Reports/Model/Resource/Report/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ protected function _getYearInterval(\DateTime $dateStart, \DateTime $dateEnd, $f
232232
$interval = [];
233233
$interval['period'] = $dateStart->format('Y');
234234
$interval['start'] = $firstInterval
235-
? $dateStart->format('Y-m-dd 00:00:00')
235+
? $dateStart->format('Y-m-d 00:00:00')
236236
: $dateStart->format('Y-01-01 00:00:00');
237237

238238
$interval['end'] = $dateStart->diff($dateEnd)->y == 0

0 commit comments

Comments
 (0)