-
Notifications
You must be signed in to change notification settings - Fork 7
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
"Illegal instant due to time zone offset transition" #15
Comments
Hi Marcus, Thanks for this, I'll take a look at reproducing this and will let you know ASAP. Great to see that it's been useful so far. Cheers |
Increased the number of ScalaCheck tests to expose this issue, too. Fixes #15.
Hi @marcushg I've published a new SNAPSHOT containing a fix for this. I expect to publish a release in the next day or two. It's also published for Scala 2.10 and 2.11. Any issues please let me know, and please keep raising issues if this library is useful. Cheers |
Thanks alot @noelmarkham! Tried the snapshot version quickly and it works as expected (i.e. I can't reproduce my error) 👍 |
Hi, first of all thanks for saving us the trouble to deal with random date generation.
From time to time we run into an 'Illegal instant due to time zone offset transition' exception due to generating a date which happens to "not exist".
Should be easy to reproduce like this:
sometimes results in e.g.
The link above has more details on the cause and some ideas on mitigating it, though I am not sure what steps would be appropriate in this case to still have completely random dates. Thanks!
The text was updated successfully, but these errors were encountered: