Skip to content

Commit

Permalink
ENGCOM-2075: [Forwardport] DOBISSUE date format changed after custome…
Browse files Browse the repository at this point in the history
…r tries to register with sa… #16283
  • Loading branch information
Stanislav Idolov authored Jun 23, 2018
2 parents 34def88 + 42992be commit 557c3d1
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 557c3d1

Please sign in to comment.