Skip to content

Commit 395ed73

Browse files
author
Oleksandr Dubovyk
committed
MAGETWO-94119: [2.3] DateTime::__construct(): Failed to parse time string (30/01/2018) at position 0 (3): Unexpected character
-Fixed bug
1 parent a7893f9 commit 395ed73

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Reports/Block/Adminhtml

1 file changed

+2
-2
lines changed

app/code/Magento/Reports/Block/Adminhtml/Grid.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ protected function _prepareCollection()
127127
* Validate from and to date
128128
*/
129129
try {
130-
$from = $this->_localeDate->scopeDate(null, $this->getFilter('report_from'), false);
131-
$to = $this->_localeDate->scopeDate(null, $this->getFilter('report_to'), false);
130+
$from = $this->_localeDate->date($this->getFilter('report_from'), null, false, false);
131+
$to = $this->_localeDate->date($this->getFilter('report_to'), null, false, false);
132132

133133
$collection->setInterval($from, $to);
134134
} catch (\Exception $e) {

0 commit comments

Comments
 (0)