mirror of
https://github.com/OMGeeky/twba.uploader.git
synced 2025-12-26 16:37:23 +01:00
fix datetime parsing (match fetcher format)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user