Skip to content

Commit 12d0b6f

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

File tree

1 file changed

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

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ public function __construct(TimezoneInterface $localeDate)
5252
*/
5353
public function filter($value)
5454
{
55-
return $this->_normalToLocalFilter->filter($this->_localToNormalFilter->filter($value));
55+
$value = $this->_normalToLocalFilter->filter($this->_localToNormalFilter->filter($value));
56+
57+
/**
58+
* its not a space in str_replace, don't delete it, it would cause a bug
59+
* @todo MAGETWO-51391
60+
*/
61+
return str_replace(' ', '', $value);
5662
}
5763
}

0 commit comments

Comments
 (0)