From 92c1406b4fdc58ab3e8a2e75385dd50b0b3f997d Mon Sep 17 00:00:00 2001 From: mdecimus Date: Wed, 1 Nov 2023 09:01:30 +0100 Subject: [PATCH] Bump tokio-tungstenite to 0.20 --- Cargo.toml | 2 +- src/core/set.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e51951d..55ea399 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ resolver = "2" [dependencies] reqwest = { version = "0.11", default-features = false, features = ["rustls-tls-webpki-roots"]} -tokio-tungstenite = { version = "0.19", features = ["rustls-tls-webpki-roots"], optional = true} +tokio-tungstenite = { version = "0.20", features = ["rustls-tls-webpki-roots"], optional = true} tokio = { version = "1.16", default-features = false, features = ["io-util"], optional = true } futures-util = { version = "0.3", optional = true} async-stream = { version = "0.3", optional = true} diff --git a/src/core/set.rs b/src/core/set.rs index 9563e0d..1a12d05 100644 --- a/src/core/set.rs +++ b/src/core/set.rs @@ -438,7 +438,7 @@ impl Display for SetErrorType { } pub fn from_timestamp(timestamp: i64) -> DateTime { - DateTime::::from_utc( + DateTime::from_naive_utc_and_offset( NaiveDateTime::from_timestamp_opt(timestamp, 0).unwrap_or_default(), Utc, )