Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOBISSUE date format changed after customer tries to register with sa… #15272

Merged
merged 7 commits into from
Jun 18, 2018
3 changes: 2 additions & 1 deletion app/code/Magento/Customer/Block/Widget/Dob.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ protected function getFormFilter()
protected function applyOutputFilter($value)
{
$filter = $this->getFormFilter();
if ($filter) {
if ($filter && $value) {
$value = date('Y-m-d', $this->getTime());
$value = $filter->outputFilter($value);
}
return $value;
Expand Down