We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9baa2b1 commit 2c2d693Copy full SHA for 2c2d693
src/utils/parser.rs
@@ -38,7 +38,7 @@ pub fn parse_lstime(tm: &str, fmt_year: &str, fmt_hours: &str) -> Result<SystemT
38
Ok(date) => {
39
// Case 2.
40
// Return NaiveDateTime from NaiveDate with time 00:00:00
41
- date.and_hms(0, 0, 0)
+ date.and_hms_opt(0, 0, 0).unwrap()
42
}
43
Err(_) => {
44
// Might be case 1.
0 commit comments