Skip to content

Commit f08d932

Browse files
KaushikChavdagelanivishal
authored andcommitted
DOBUSSUE fixed On Create New Customer Account page DOB field always contains default date "1/1/1970" instead of empty field.
1 parent f49cf3d commit f08d932

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Customer/Block/Widget

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Block/Widget/Dob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected function getFormFilter()
127127
protected function applyOutputFilter($value)
128128
{
129129
$filter = $this->getFormFilter();
130-
if ($filter) {
130+
if ($filter && $value) {
131131
$value = date('Y-m-d', $this->getTime());
132132
$value = $filter->outputFilter($value);
133133
}

0 commit comments

Comments
 (0)