We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 513e9f5 + dfefe0b commit f6cfea4Copy full SHA for f6cfea4
lib/internal/Magento/Framework/Data/Form/Filter/Date.php
@@ -54,6 +54,10 @@ public function __construct(
54
*/
55
public function inputFilter($value)
56
{
57
+ if (!$value) {
58
+ return $value;
59
+ }
60
+
61
$filterInput = new \Zend_Filter_LocalizedToNormalized(
62
['date_format' => $this->_dateFormat, 'locale' => $this->localeResolver->getLocale()]
63
);
@@ -74,6 +78,10 @@ public function inputFilter($value)
74
78
75
79
public function outputFilter($value)
76
80
81
82
83
84
77
85
86
['date_format' => DateTime::DATE_INTERNAL_FORMAT, 'locale' => $this->localeResolver->getLocale()]
87
0 commit comments