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

Local.ymd gives wrong day #27

Closed
raymontag opened this issue Feb 27, 2015 · 4 comments
Closed

Local.ymd gives wrong day #27

raymontag opened this issue Feb 27, 2015 · 4 comments

Comments

@raymontag
Copy link

Hey,

I used something like

let d = Local.ymd(2999, 12, 28).and_hms(23, 59, 59)

in my code. However

d.day()

gives 27.

UPDATE: Interesting, works in Travis CI but not with my local version

@lifthrasiir
Copy link
Contributor

Is it Chrono 0.2.3 or later? You may have to run cargo update first.

@raymontag
Copy link
Author

Yes it's 0.2.3 and I tried 'cargo update' before.

@lifthrasiir
Copy link
Contributor

Whoops, I've confirmed the problem. This only occurs with positive UTC offsets (UTC+9 etc). This must have been present but dormant before 0.2.3 (due to a flawed Local implementation) and revived on 0.2.3. I'll fix this as soon as possible.

@raymontag
Copy link
Author

Thx :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants