-
Notifications
You must be signed in to change notification settings - Fork 546
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
formatting NaiveDateTime
as RFC3339
gives a bad-explaining error
#1096
Comments
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 28, 2023
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 28, 2023
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 28, 2023
jtmoon79
added a commit
to jtmoon79/chrono
that referenced
this issue
May 28, 2023
I was able to reproduce this issue on branch I added this user-provided regression test in PR #1097 |
#902 Should give a better error message here. It will have to wait until 0.5 though, as that is a breaking change. |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently when trying to format a
NaiveDateTime
withRFC3339
(or to be more specific.format("%+")
), there a very generic error:no mention of that it cannot format because no timezone is provided
from my testing the error comes from:
chrono/src/format/mod.rs
Line 687 in 083d3bf
because
off
isNone
and results in the following error:chrono/src/format/mod.rs
Line 697 in 083d3bf
versions:
rustc rustc 1.69.0 (84c898d65 2023-04-16)
chrono 0.4.24
reproduction code:
possible fixes:
RFC3339
is not supported forNaiveDateTime
The text was updated successfully, but these errors were encountered: