-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
birthday throwing exception if run at 2/29/2024 #1103
Comments
Frankly speaking I do not trust this description @gregma could you please verify that you test with the correct versions? |
I've just run
|
This is test only related issue |
Re-checking now. I'm guessing you're right on the |
Just re-ran 6 times. Didn't get any failures from Did still get one from |
thanks for checking
I didn't get it however it might be there is a similar issue |
Describe the bug
When attempting to create a birthday today (This is a leap year and it's 2/29/2024.) I get the following:
Invalid date 'February 29' as '2006' is not a leap year
To Reproduce
faker.date().birthday(18, 60, "M/d/yyyy")
Expected behavior
Faker to generate a birthdate
Versions:
Additional context
When using calculations, if the date of one of the variables happens to not be a leap year, then it should automatically change to the 28th, and not throw the exception.
The text was updated successfully, but these errors were encountered: