Skip to content

Commit

Permalink
ENGCOM-1625: DOBISSUE date format changed after customer tries to reg…
Browse files Browse the repository at this point in the history
…ister with sa… #15272
  • Loading branch information
Stanislav Idolov authored Jun 18, 2018
2 parents dd9b57a + 4068c9c commit 57be5f0
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 57be5f0

Please sign in to comment.