From 56ca1df63b148b480e9517117df27e2268676a2d Mon Sep 17 00:00:00 2001 From: Ahmad Hunaepi Date: Mon, 30 Aug 2021 14:22:46 +0700 Subject: [PATCH] patch bug Validator.php patch bug tanggal lahir 10 --- src/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validator.php b/src/Validator.php index 0b4c90a..0933c19 100644 --- a/src/Validator.php +++ b/src/Validator.php @@ -75,7 +75,7 @@ private function getBornDate() // Get born date if($isFemale) $NIKdate -= 40; - $date = ($NIKdate > 10) ? strval($NIKdate) : "0$NIKdate"; + $date = ($NIKdate >= 10) ? strval($NIKdate) : "0$NIKdate"; // Get born month $month = substr($this->nik, 8, 2); // Get born year