Update chrono: 0.3 -> 0.4
This commit is contained in:
parent
aee7772665
commit
17b9c01163
8 changed files with 8 additions and 8 deletions
|
@ -15,7 +15,7 @@ homepage = "http://imag-pim.org"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
filters = "0.1"
|
filters = "0.1"
|
||||||
chrono = "0.3"
|
chrono = "0.4"
|
||||||
toml = "0.4"
|
toml = "0.4"
|
||||||
toml-query = "0.3"
|
toml-query = "0.3"
|
||||||
lazy_static = "0.2"
|
lazy_static = "0.2"
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
use toml_query::insert::TomlValueInsertExt;
|
use toml_query::insert::TomlValueInsertExt;
|
||||||
use chrono::naive::datetime::NaiveDateTime as NDT;
|
use chrono::naive::NaiveDateTime as NDT;
|
||||||
|
|
||||||
use constants::*;
|
use constants::*;
|
||||||
use error::TimeTrackError as TTE;
|
use error::TimeTrackError as TTE;
|
||||||
|
|
|
@ -26,7 +26,7 @@ pub mod tag;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test {
|
mod test {
|
||||||
use chrono::naive::date::NaiveDate;
|
use chrono::naive::NaiveDate;
|
||||||
|
|
||||||
use libimagstore::store::Store;
|
use libimagstore::store::Store;
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
use toml::Value;
|
use toml::Value;
|
||||||
use toml_query::insert::TomlValueInsertExt;
|
use toml_query::insert::TomlValueInsertExt;
|
||||||
use chrono::naive::datetime::NaiveDateTime as NDT;
|
use chrono::naive::NaiveDateTime as NDT;
|
||||||
|
|
||||||
use constants::*;
|
use constants::*;
|
||||||
use error::TimeTrackError as TTE;
|
use error::TimeTrackError as TTE;
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
//
|
//
|
||||||
|
|
||||||
use chrono::naive::datetime::NaiveDateTime as NDT;
|
use chrono::naive::NaiveDateTime as NDT;
|
||||||
|
|
||||||
use constants::*;
|
use constants::*;
|
||||||
use error::TimeTrackError;
|
use error::TimeTrackError;
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
//
|
//
|
||||||
|
|
||||||
use chrono::naive::datetime::NaiveDateTime as NDT;
|
use chrono::naive::NaiveDateTime as NDT;
|
||||||
|
|
||||||
use error::TimeTrackError;
|
use error::TimeTrackError;
|
||||||
use error::TimeTrackErrorKind as TTEK;
|
use error::TimeTrackErrorKind as TTEK;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
//! getting the start and end time and also deleting start and end time.
|
//! getting the start and end time and also deleting start and end time.
|
||||||
//!
|
//!
|
||||||
|
|
||||||
use chrono::naive::datetime::NaiveDateTime;
|
use chrono::naive::NaiveDateTime;
|
||||||
|
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
use libimagerror::into::IntoError;
|
use libimagerror::into::IntoError;
|
||||||
|
|
|
@ -48,7 +48,7 @@ pub trait TimeTrackStore<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn now() -> NDT {
|
fn now() -> NDT {
|
||||||
use chrono::offset::local::Local;
|
use chrono::offset::Local;
|
||||||
Local::now().naive_local()
|
Local::now().naive_local()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue