Skip to content

Commit 6f52268

Browse files
committed
MAGETWO-51231: Invalid date when save special price date in future
1 parent 12d0b6f commit 6f52268

File tree

1 file changed

+1
-2
lines changed
  • lib/internal/Magento/Framework/Stdlib/DateTime/Filter

1 file changed

+1
-2
lines changed

lib/internal/Magento/Framework/Stdlib/DateTime/Filter/Date.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ public function filter($value)
5555
$value = $this->_normalToLocalFilter->filter($this->_localToNormalFilter->filter($value));
5656

5757
/**
58-
* its not a space in str_replace, don't delete it, it would cause a bug
5958
* @todo MAGETWO-51391
6059
*/
61-
return str_replace(' ', '', $value);
60+
return str_replace("\xc2\xa0", '', $value);
6261
}
6362
}

0 commit comments

Comments
 (0)