ソースを参照

Include UTC offset when using `Timestamps::UtcOffset`

hismito 2 年 前
コミット
a37f011fd3
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/lib.rs

+ 1 - 1
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"))]