-
Notifications
You must be signed in to change notification settings - Fork 543
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 parsing for zone offset seconds #1639
base: main
Are you sure you want to change the base?
Conversation
// mismatching colon expectations | ||
assert!(parse("Aug 09 2013 23:54:35 -09:00:00", "%b %d %Y %H:%M:%S %::z").is_err()); |
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.
It seems strange that this errored?
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.
These tests are just weird, and I had to fix them endless times during rebases of the branches where I fixed this offset parsing bug.
71b2047
to
7509f42
Compare
7509f42
to
db464fa
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1639 +/- ##
==========================================
- Coverage 91.11% 90.90% -0.21%
==========================================
Files 37 37
Lines 17137 17137
==========================================
- Hits 15614 15579 -35
- Misses 1523 1558 +35 ☔ View full report in Codecov by Sentry. |
Sorry, I unfortunately don't have time at the moment 😞. A complete fix with tests for this category of errors is in #1083. |
@pitdicker thanks for the quick response, and the pointer! Going to have a look at your PR. |
%::z
is defined as:So it seems like we should support this better?
Fixes #1629.