You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run the following Code on a Windows 11 machine, latest chrono version, latest Rust version, but it fails with the error mentioned below:
let date = "Thu Feb 21 23:30:39 2012";let date = DateTime::parse_from_str(date,"%a %b %d %H:%M:%S %Y");ifletOk(x) = date {dbg!(&x);}elseifletErr(x) = date {dbg!(&x);}
[src/main.rs:179:9] &x = ParseError(
Invalid,
)
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered:
A DateTime must include a timezone. Your formatting string does not include any timezone formatter. Perhaps you want to parse a NaiveDateTime instead and supply the timezone separately?
I am trying to run the following Code on a Windows 11 machine, latest chrono version, latest Rust version, but it fails with the error mentioned below:
[src/main.rs:179:9] &x = ParseError( Invalid, )
Am I doing something wrong or is this a bug?
The text was updated successfully, but these errors were encountered: