Skip to content

Commit 030a838

Browse files
authored
Merge pull request #62 from hismito/main
Include UTC offset when using `Timestamps::UtcOffset`
2 parents c374d15 + a37f011 commit 030a838

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)