fix date parse

This commit is contained in:
Dmitry Belyaev 2025-01-28 11:52:21 +03:00
parent c8f7b9b072
commit 79d18e04db
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -149,8 +149,8 @@ impl FromStr for LocalDate {
type Err = anyhow::Error; type Err = anyhow::Error;
fn from_str(s: &str) -> Result<Self, Self::Err> { fn from_str(s: &str) -> Result<Self, Self::Err> {
let date = NaiveDateTime::parse_from_str(s, "%d.%m.%Y")?; let date = NaiveDate::parse_from_str(s, "%d.%m.%Y")?;
Ok(LocalDate { inner: date.date() }) Ok(LocalDate { inner: date })
} }
} }