Skip to content
Snippets Groups Projects
Commit 799199e1 authored by Vova Yatsyuk's avatar Vova Yatsyuk
Browse files

Fix errors when DOB field is visible. #12146

 - Fix customer create page rendering
 - Fix customer save in backend and frontend
parent 7ea830fd
Branches
No related merge requests found
......@@ -54,6 +54,10 @@ class Date implements \Magento\Framework\Data\Form\Filter\FilterInterface
*/
public function inputFilter($value)
{
if (!$value) {
return $value;
}
$filterInput = new \Zend_Filter_LocalizedToNormalized(
['date_format' => $this->_dateFormat, 'locale' => $this->localeResolver->getLocale()]
);
......@@ -74,6 +78,10 @@ class Date implements \Magento\Framework\Data\Form\Filter\FilterInterface
*/
public function outputFilter($value)
{
if (!$value) {
return $value;
}
$filterInput = new \Zend_Filter_LocalizedToNormalized(
['date_format' => DateTime::DATE_INTERNAL_FORMAT, 'locale' => $this->localeResolver->getLocale()]
);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment