Update chrono: 0.2 -> 0.4
This commit is contained in:
parent
d6e09ab550
commit
297c552335
3 changed files with 7 additions and 7 deletions
|
@ -14,7 +14,7 @@ repository = "https://github.com/matthiasbeyer/imag"
|
|||
homepage = "http://imag-pim.org"
|
||||
|
||||
[dependencies]
|
||||
chrono = "0.2"
|
||||
chrono = "0.4"
|
||||
log = "0.3"
|
||||
semver = "0.5"
|
||||
toml = "0.4.*"
|
||||
|
|
|
@ -23,10 +23,10 @@ use libimagstore::store::Store;
|
|||
use libimagstore::storeid::IntoStoreId;
|
||||
use libimagerror::trace::trace_error;
|
||||
|
||||
use chrono::offset::local::Local;
|
||||
use chrono::offset::Local;
|
||||
use chrono::Datelike;
|
||||
use itertools::Itertools;
|
||||
use chrono::naive::datetime::NaiveDateTime;
|
||||
use chrono::naive::NaiveDateTime;
|
||||
|
||||
use entry::Entry;
|
||||
use diaryid::DiaryId;
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
use std::convert::Into;
|
||||
use std::fmt::{Display, Formatter, Error as FmtError};
|
||||
|
||||
use chrono::naive::datetime::NaiveDateTime;
|
||||
use chrono::naive::time::NaiveTime;
|
||||
use chrono::naive::date::NaiveDate;
|
||||
use chrono::naive::NaiveDateTime;
|
||||
use chrono::naive::NaiveTime;
|
||||
use chrono::naive::NaiveDate;
|
||||
use chrono::Datelike;
|
||||
use chrono::Timelike;
|
||||
|
||||
|
@ -119,7 +119,7 @@ impl DiaryId {
|
|||
}
|
||||
|
||||
pub fn now(name: String) -> DiaryId {
|
||||
use chrono::offset::local::Local;
|
||||
use chrono::offset::Local;
|
||||
|
||||
let now = Local::now();
|
||||
let now_date = now.date().naive_local();
|
||||
|
|
Loading…
Reference in a new issue