diff --git a/zcash_client_sqlite/Cargo.toml b/zcash_client_sqlite/Cargo.toml index 3677b5c83..13dea3a11 100644 --- a/zcash_client_sqlite/Cargo.toml +++ b/zcash_client_sqlite/Cargo.toml @@ -19,8 +19,8 @@ group = "0.8" jubjub = "0.5" protobuf = "2.15" rand_core = "0.5.1" -rusqlite = { version = "0.23", features = ["bundled"] } -time = "0.1" +rusqlite = { version = "0.24", features = ["bundled", "time"] } +time = "0.2" zcash_client_backend = { version = "0.3", path = "../zcash_client_backend" } zcash_primitives = { version = "0.3", path = "../zcash_primitives" } diff --git a/zcash_client_sqlite/src/transact.rs b/zcash_client_sqlite/src/transact.rs index a7488eaa3..6aa7d7be9 100644 --- a/zcash_client_sqlite/src/transact.rs +++ b/zcash_client_sqlite/src/transact.rs @@ -301,7 +301,7 @@ pub fn create_to_address>( Some(idx) => idx as i64, None => panic!("Output 0 should exist in the transaction"), }; - let created = time::get_time(); + let created = time::OffsetDateTime::now_utc(); // Update the database atomically, to ensure the result is internally consistent. data.execute("BEGIN IMMEDIATE", NO_PARAMS)?;