diff --git a/src/Pesel.php b/src/Pesel.php index 72e2af9..a51eb0e 100644 --- a/src/Pesel.php +++ b/src/Pesel.php @@ -159,7 +159,7 @@ public function getBirthDate() */ public function hasBirthDate(DateTime $birthDate) { - return $this->getBirthDate() == $birthDate; + return $this->getBirthDate() == (clone $birthDate)->setTime(0, 0, 0); } /**