mirror of
https://github.com/chronotope/chrono.git
synced 2025-09-30 22:42:08 +00:00
Switch RFC3339
formatting item to relaxed parser to match documentation
This commit is contained in:
parent
3f8a5005e9
commit
e985f08868
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user