Skip to content

Commit a37f011

Browse files
committed
Include UTC offset when using Timestamps::UtcOffset
1 parent c374d15 commit a37f011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ impl Log for SimpleLogger {
432432
"(https://time-rs.github.io/internal-api/time/index.html#feature-flags)"
433433
)).format(&TIMESTAMP_FORMAT_OFFSET).unwrap()),
434434
Timestamps::Utc => format!("{} ", OffsetDateTime::now_utc().format(&TIMESTAMP_FORMAT_UTC).unwrap()),
435-
Timestamps::UtcOffset(offset) => format!("{} ", OffsetDateTime::now_utc().to_offset(offset).format(&TIMESTAMP_FORMAT_UTC).unwrap()),
435+
Timestamps::UtcOffset(offset) => format!("{} ", OffsetDateTime::now_utc().to_offset(offset).format(&TIMESTAMP_FORMAT_OFFSET).unwrap()),
436436
}
437437

438438
#[cfg(not(feature = "timestamps"))]

0 commit comments

Comments
 (0)