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 00aaa80 commit 713485eCopy full SHA for 713485e
app/code/Magento/Customer/Model/Validator/Dob.php
@@ -60,6 +60,8 @@ public function isValid($customer): bool
60
*/
61
private function isValidDob(?string $dobValue, null|string|bool|int|StoreInterface $storeId): bool
62
{
63
+ if ($dobValue != null) {
64
+
65
// Get the timezone of the store
66
$store = $this->storeManager->getStore($storeId);
67
$timezone = $store->getConfig('general/locale/timezone');
@@ -76,6 +78,7 @@ private function isValidDob(?string $dobValue, null|string|bool|int|StoreInterfa
76
78
if ($dobTimestamp > $currentTimestamp) {
77
79
return false;
80
}
81
+ }
82
83
return true;
84
0 commit comments