From e92f93c29061659c5775cbcd9b7bd48ef235c6c8 Mon Sep 17 00:00:00 2001 From: acheron <98934430+acheroncrypto@users.noreply.github.com> Date: Sat, 7 Jan 2023 07:48:10 +0100 Subject: [PATCH] Fix deprecated warning on solana-sdk (#29109) --- sdk/src/genesis_config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/src/genesis_config.rs b/sdk/src/genesis_config.rs index ca75ebda4..16bf0f2e3 100644 --- a/sdk/src/genesis_config.rs +++ b/sdk/src/genesis_config.rs @@ -257,7 +257,9 @@ impl fmt::Display for GenesisConfig { Native instruction processors: {:#?}\n\ Rewards pool: {:#?}\n\ ", - Utc.timestamp(self.creation_time, 0).to_rfc3339(), + Utc.timestamp_opt(self.creation_time, 0) + .unwrap() + .to_rfc3339(), self.cluster_type, self.hash(), compute_shred_version(&self.hash(), None),