Skip to content
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

Error when use date.between #12

Closed
mdeandrea-mrmilu opened this issue Nov 2, 2022 · 1 comment
Closed

Error when use date.between #12

mdeandrea-mrmilu opened this issue Nov 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@mdeandrea-mrmilu
Copy link

When use date.between I had this error:
RangeError: max must be in range 0 < max ≤ 2^32, was 0

Example:

final faker = Faker.instance;
faker.date.between(DateTime(2021), DateTime(2021,  12))
@casvanluijtelaar casvanluijtelaar added the bug Something isn't working label Nov 2, 2022
@casvanluijtelaar
Copy link
Owner

couldn't directly replicate it, but I can see how it could technically happen. I've modified the date.between to make sure it never happens. available in 0.1.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants