Update chrono: 0.2 -> 0.4

This commit is contained in:
Matthias Beyer 2017-07-15 20:17:50 +02:00
parent d6e09ab550
commit 297c552335
3 changed files with 7 additions and 7 deletions

View file

@ -14,7 +14,7 @@ repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org" homepage = "http://imag-pim.org"
[dependencies] [dependencies]
chrono = "0.2" chrono = "0.4"
log = "0.3" log = "0.3"
semver = "0.5" semver = "0.5"
toml = "0.4.*" toml = "0.4.*"

View file

@ -23,10 +23,10 @@ use libimagstore::store::Store;
use libimagstore::storeid::IntoStoreId; use libimagstore::storeid::IntoStoreId;
use libimagerror::trace::trace_error; use libimagerror::trace::trace_error;
use chrono::offset::local::Local; use chrono::offset::Local;
use chrono::Datelike; use chrono::Datelike;
use itertools::Itertools; use itertools::Itertools;
use chrono::naive::datetime::NaiveDateTime; use chrono::naive::NaiveDateTime;
use entry::Entry; use entry::Entry;
use diaryid::DiaryId; use diaryid::DiaryId;

View file

@ -20,9 +20,9 @@
use std::convert::Into; use std::convert::Into;
use std::fmt::{Display, Formatter, Error as FmtError}; use std::fmt::{Display, Formatter, Error as FmtError};
use chrono::naive::datetime::NaiveDateTime; use chrono::naive::NaiveDateTime;
use chrono::naive::time::NaiveTime; use chrono::naive::NaiveTime;
use chrono::naive::date::NaiveDate; use chrono::naive::NaiveDate;
use chrono::Datelike; use chrono::Datelike;
use chrono::Timelike; use chrono::Timelike;
@ -119,7 +119,7 @@ impl DiaryId {
} }
pub fn now(name: String) -> DiaryId { pub fn now(name: String) -> DiaryId {
use chrono::offset::local::Local; use chrono::offset::Local;
let now = Local::now(); let now = Local::now();
let now_date = now.date().naive_local(); let now_date = now.date().naive_local();