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
panic in chrono when parsing the string "12pm" #24
Comments
The following changes to fn am_pm(name: &str, mut hour: u32) -> DateResult<u32> {
if name == "pm" {
if hour != 12 {
hour += 12;
}
} else if name == "am" {
if hour == 12 {
hour = 0;
}
} else if name != "am" {
return date_result("expected am or pm");
}
Ok(hour)
} |
I noticed that my fork, interim, also has this problem.
Never mind, 12pm should be midday |
Sorry guys, this is a nasty one and I will fix as soon as I get back from vacation. |
See issue title.
Relevant Cargo.lock versions:
The text was updated successfully, but these errors were encountered: