Skip to content

Commit fe389c3

Browse files
ENGCOM-2558: [Backport] DOBISSUE date format changed after customer tries to register with sa #17182
- Merge Pull Request #17182 from gelanivishal/magento2:2.1-develop-PR-port-15272 - Merged commits: 1. ff550b4 2. 158e977 3. 7359a16 4. f49cf3d 5. f08d932
2 parents 9317c4f + f08d932 commit fe389c3

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)