fix date parse
This commit is contained in:
@@ -149,8 +149,8 @@ impl FromStr for LocalDate {
|
||||
type Err = anyhow::Error;
|
||||
|
||||
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
||||
let date = NaiveDateTime::parse_from_str(s, "%d.%m.%Y")?;
|
||||
Ok(LocalDate { inner: date.date() })
|
||||
let date = NaiveDate::parse_from_str(s, "%d.%m.%Y")?;
|
||||
Ok(LocalDate { inner: date })
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user