-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix DateOnly and TimeOnly Formatting using interpolated strings #64398
Fix DateOnly and TimeOnly Formatting using interpolated strings #64398
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @dotnet/area-system-runtime Issue DetailsFixes #64292
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It's interesting this doesn't cause any tests to fail. Are we missing direct tests of TryFormat?
We were testing the positive cases only. I added the interpolated string tests which should catch the negative cases. If you think we should add specific negative tests for TryFormat, I can do that. We already testing the not enough destination buffer space here
|
Thanks. Yes, I think we should have those tests for TryFormat. It'd be fine to do those instead of the interpolation ones. |
The failures in the CI are tracked by the issue #64389. |
/backport to release/6.0 |
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1762869247 |
Fixes #64292