fix date parse
This commit is contained in:
parent
c8f7b9b072
commit
79d18e04db
@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user