Skip to content

: Allows the parsing of year + day-of-year to a time_point - #1940

Merged
Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
MattStephanson:gh-1938
Jun 29, 2021
Merged

Stephan T. Lavavej (StephanTLavavej) merged 1 commit into
microsoft:mainfrom
MattStephanson:gh-1938

Conversation

@MattStephanson

Copy link
Copy Markdown
Contributor

Fixes #1938.

  • Call to _Calculate_ymd should be sooner, so that parsed fields are
    converted to Gregorian YMD before we call _Apply_duration_fields.

 - Call to _Calculate_ymd should be sooner, so that parsed fields are
   converted to Gregorian YMD before we call _Apply_duration_fields.
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks, looks great! I debugged through the test case in order to understand the control flow - really appreciate how you found exactly the right place to fix this. 😻

@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks again for fixing this bug (or, as the compiler backend devs say, "silent bad codegen")! 😸 🪲 📅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working chrono C++20 chrono

Projects

None yet

Development

Successfully merging this pull request may close these issues.

: Allow the parsing of year + day-of-the-year to a time_point using from_stream

4 participants