Skip to content

Commit

Permalink
Merge pull request #62 from hismito/main
Browse files Browse the repository at this point in the history
Include UTC offset when using `Timestamps::UtcOffset`
  • Loading branch information
borntyping committed Jul 4, 2022
2 parents c374d15 + a37f011 commit 030a838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -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"))]
Expand Down

0 comments on commit 030a838

Please sign in to comment.