Skip to content

Commit

Permalink
Switch RFC3339 formatting item to relaxed parser to match documenta…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
pitdicker committed Aug 29, 2023
1 parent 3f8a500 commit e985f08
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/format/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,13 @@ where
}

&RFC2822 => try_consume!(parse_rfc2822(parsed, s)),
&RFC3339 => try_consume!(parse_rfc3339(parsed, s)),
&RFC3339 => {
// Used for the `%+` specifier, which has the description:
// "Same as `%Y-%m-%dT%H:%M:%S%.f%:z` (...)
// This format also supports having a `Z` or `UTC` in place of `%:z`."
// Use the relaxed parser to match this description.
try_consume!(parse_rfc3339_relaxed(parsed, s))
}
}
}

Expand Down

0 comments on commit e985f08

Please sign in to comment.