We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cdea8e commit 7de9622Copy full SHA for 7de9622
app/code/Magento/Customer/Block/Widget/Dob.php
@@ -482,14 +482,14 @@ private function normalizedDobOutput(mixed $value): mixed
482
$locale = $this->localeResolver->getLocale();
483
$dateFormat = $this->getDateFormat();
484
$dateTime = $this->_localeDate->date($value, $locale, false, false);
485
-
486
- return $this->_localeDate->formatDateTime(
487
- $dateTime,
+ $formatter = new \IntlDateFormatter(
+ Resolver::DEFAULT_LOCALE,
488
\IntlDateFormatter::NONE,
489
490
- Resolver::DEFAULT_LOCALE,
+ $dateTime->getTimezone(),
491
null,
492
$dateFormat
493
);
+ return $formatter->format($dateTime);
494
}
495
0 commit comments