Skip to content

Commit

Permalink
Merge pull request #1 from hunaepi/patch-1
Browse files Browse the repository at this point in the history
patch bug Validator.php
  • Loading branch information
irsyadulibad authored Sep 2, 2021
2 parents 7cae1a1 + 56ca1df commit 57cfded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57cfded

Please sign in to comment.