From a37f011fd38aede6cbfac210dcacb404a849d6e0 Mon Sep 17 00:00:00 2001 From: hismito <42246585+hismito@users.noreply.github.com> Date: Sat, 2 Jul 2022 09:58:47 +0000 Subject: [PATCH] Include UTC offset when using `Timestamps::UtcOffset` --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3a32188..8cb3ce7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -432,7 +432,7 @@ impl Log for SimpleLogger { "(https://time-rs.github.io/internal-api/time/index.html#feature-flags)" )).format(&TIMESTAMP_FORMAT_OFFSET).unwrap()), Timestamps::Utc => format!("{} ", OffsetDateTime::now_utc().format(&TIMESTAMP_FORMAT_UTC).unwrap()), - Timestamps::UtcOffset(offset) => format!("{} ", OffsetDateTime::now_utc().to_offset(offset).format(&TIMESTAMP_FORMAT_UTC).unwrap()), + Timestamps::UtcOffset(offset) => format!("{} ", OffsetDateTime::now_utc().to_offset(offset).format(&TIMESTAMP_FORMAT_OFFSET).unwrap()), } #[cfg(not(feature = "timestamps"))]