1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-08 08:30:00 +02:00

naivedatetime -> datetime utc

This commit is contained in:
Jan Lukas Gernert 2020-05-20 16:33:40 +02:00
parent 8f48b69161
commit f51605a92c
3 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
use crate::error::{ScraperError, ScraperErrorKind};
use chrono::NaiveDateTime;
use chrono::{DateTime, Utc};
use failure::ResultExt;
use std;
use std::io::Write;
@ -10,7 +10,7 @@ pub struct Article {
pub title: Option<String>,
pub author: Option<String>,
pub url: Url,
pub date: Option<NaiveDateTime>,
pub date: Option<DateTime<Utc>>,
pub html: Option<String>,
}