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

Can create LocalDate with 0 or -1 day #806

Closed
DmitryMak opened this issue May 2, 2017 · 1 comment
Closed

Can create LocalDate with 0 or -1 day #806

DmitryMak opened this issue May 2, 2017 · 1 comment

Comments

@DmitryMak
Copy link

I expect these lines to throw an ArgumentOutOfRangeException:

new LocalDate(2014, 1, -1);
new LocalDate(2014, 1, 0);

Actual result is that instances get created but are unusable (calling ToString on them throws IndexOutOfRangeException for example). This is latest stable from NUget (NodaTime 2.0.0)

@jskeet
Copy link
Member

jskeet commented May 2, 2017

Duplicate of #801. (Will be fixed in 2.0.1.)

@jskeet jskeet closed this as completed May 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants