From fdb385c5c67bbdbdd60d9e2e75593d29a033f9a2 Mon Sep 17 00:00:00 2001 From: Dominic Grimm Date: Sun, 26 Feb 2023 23:30:41 +0100 Subject: [PATCH] Fix timestamp for 'getLatestImportTime' --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 91505f4..5dcf31b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -720,7 +720,7 @@ impl Client { } if let Some(x) = resp.result { - Ok(chrono::NaiveDateTime::from_timestamp_opt(x, 0) + Ok(chrono::NaiveDateTime::from_timestamp_millis(x) .context("Could not convert Unix timestamp to NaiveDateTime")?) } else { bail!("RPC result is null");