diff --git a/Cargo.lock b/Cargo.lock index 7aa58b8..37b72a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "ahash" version = "0.7.4" @@ -256,6 +258,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57adcf67c8faaf96f3248c2a7b419a0dbc52ebe36ba83dd57fe83827c1ea4eb3" dependencies = [ "bitflags", + "chrono", "fallible-iterator", "fallible-streaming-iterator", "hashlink", diff --git a/Cargo.toml b/Cargo.toml index 65c8883..f37c011 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ edition = "2018" [dependencies] clap = "2" chrono = "0.4" -rusqlite = "0.25.3" +rusqlite = { version = "0.25.3", features = ["chrono"] } thiserror = "*" dirs = "*" serde = { version = "1.0", features = ["derive"] } diff --git a/src/commands/in.rs b/src/commands/in.rs index cd8e1ff..45b23fc 100644 --- a/src/commands/in.rs +++ b/src/commands/in.rs @@ -2,8 +2,13 @@ use std::convert::TryFrom; use std::io::Write; use clap::ArgMatches; +use chrono::{DateTime, Utc}; -use crate::{database::Database, error, types::Time, editor, commands::Command}; +use crate::database::Database; +use crate::error; +use crate::types::Time; +use crate::editor; +use crate::commands::Command; pub struct Args { at: Option