From d4f87c12ed824e525b98c97df196a85e96166154 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 9 Sep 2020 00:53:42 +0100 Subject: [PATCH] rusqlite 0.24 --- zcash_client_sqlite/Cargo.toml | 4 ++-- zcash_client_sqlite/src/transact.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)?;