From 7ddfca927825d2f586ec614a8008746e4db7a43c Mon Sep 17 00:00:00 2001 From: Daniel Martinez Maqueda Date: Wed, 27 Sep 2023 14:43:42 +0200 Subject: [PATCH] Update deprecated function `from_utc` to avoid build errors Update deprecated function `from_utc` to avoid build errors Signed-off-by: Daniel Martinez Maqueda --- src/common/logger.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/logger.rs b/src/common/logger.rs index 0ac9363b..8fe7f6c1 100644 --- a/src/common/logger.rs +++ b/src/common/logger.rs @@ -89,7 +89,7 @@ impl EnclaveProcLogWriter { /// Generate a single message string. fn create_msg(&self, now: &DateTime, record: &Record) -> NitroCliResult { // UTC timestamp according to RFC 2822 - let timestamp = DateTime::::from_utc(now.naive_utc(), Utc) + let timestamp = DateTime::::from_naive_utc_and_offset(now.naive_utc(), Utc) .to_rfc3339_opts(chrono::SecondsFormat::Millis, true); let logger_id = self.logger_id.lock().map_err(|e| { new_nitro_cli_failure!(