Skip to content

Commit 04db117

Browse files
MAGETWO-34390: Stabilization of replacing Zend_Locale with Native PHP Implementation
1 parent b4c4417 commit 04db117

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,9 @@ protected function _getTZOffsetTransitions($timezone, $from = null, $to = null)
404404
$tzTransitions = [];
405405
try {
406406
if (!empty($from)) {
407-
$from = (new \DateTime($from))->getTimestamp();
407+
$from = $from->getTimestamp();
408408
}
409409

410-
$to = new \DateTime($to);
411410
$nextPeriod = $this->_getWriteAdapter()->formatDate(
412411
$to->format('Y-m-d H:i:s')
413412
);

0 commit comments

Comments
 (0)