Skip to content

Commit

Permalink
DOBUSSUE fixed On Create New Customer Account page DOB field always c…
Browse files Browse the repository at this point in the history
…ontains default date "1/1/1970" instead of empty field.
  • Loading branch information
KaushikChavda authored and hitesh-wagento committed Jun 21, 2018
1 parent b6375da commit 0973ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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,7 @@ 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);
}
Expand Down

0 comments on commit 0973ca3

Please sign in to comment.