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");