Skip to content

Commit 557c3d1

Browse files
author
Stanislav Idolov
authored
ENGCOM-2075: [Forwardport] DOBISSUE date format changed after customer tries to register with sa… #16283
2 parents 34def88 + 42992be commit 557c3d1

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ protected function getFormFilter()
127127
protected function applyOutputFilter($value)
128128
{
129129
$filter = $this->getFormFilter();
130-
if ($filter) {
130+
if ($filter && $value) {
131+
$value = date('Y-m-d', $this->getTime());
131132
$value = $filter->outputFilter($value);
132133
}
133134
return $value;

0 commit comments

Comments
 (0)