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:
parent
8f48b69161
commit
f51605a92c
3 changed files with 5 additions and 5 deletions
|
@ -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>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue