-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling leap year in
en_US
Passport provider (#1872)
* Refactor common code in passport_dates() in en_US Passport provider * Fix handling 29 Feb in en_US Passport provider Fix handling the issue date of 29 Feb (of a leap year). Since the passports expire in 5 or 10 years, the expiration year will not be a leap year, and therefore the date needs to be adjusted to 28 Feb. Fixes #1870
- Loading branch information
Showing
1 changed file
with
6 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters