fix datetime parsing (match fetcher format)

This commit is contained in:
OMGeeky
2024-04-24 00:13:01 +02:00
parent da16f0abbb
commit 1eb1396c5a

View File

@@ -238,7 +238,7 @@ fn format_progress(max: usize, current: usize) -> String {
const DATETIME_FORMAT: &str = "%Y-%m-%dT%H:%M:%S";
fn parse_date(date: &str) -> ParseResult<NaiveDateTime> {
chrono::NaiveDateTime::parse_from_str(&date, DATETIME_FORMAT)
Ok(chrono::DateTime::parse_from_rfc3339(date)?.naive_local())
}
fn get_date_prefix(date: chrono::NaiveDate) -> String {