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

Inconsistency in chrono::format::Parsed::to_naive_date for instances with week numbers #551

Closed
weiznich opened this issue Apr 7, 2021 · 2 comments

Comments

@weiznich
Copy link

weiznich commented Apr 7, 2021

The chrono::format::Parsed::to_naive_date method returns depending on the year (e.g. 2002) a ParseError(Impossible) even if the fields year, week_from_mon and weekday are correctly populated as described in the documentation of the corresponding method. This does not happen for all years, for example setting the year to 2001 yields a valid date.

See this playground for a minimal example.

@pitdicker
Copy link
Collaborator

Fixed by #966.

@djc djc closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2023
@djc
Copy link
Member

djc commented Apr 17, 2023

@pitdicker thanks!

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

3 participants