Skip to content

Commit

Permalink
fixup! Use an enum to control timestamp display
Browse files Browse the repository at this point in the history
  • Loading branch information
borntyping committed Dec 14, 2021
1 parent 59b2f2e commit 57da689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl Log for SimpleLogger {
"behaviour. See the time crate's documentation for more information. ",
"(https://time-rs.github.io/internal-api/time/index.html#feature-flags)"
)).format(&TIMESTAMP_FORMAT).unwrap()),
Timestamps::Utc => format!("{} ", OffsetDateTime::now_utc()),
Timestamps::Utc => format!("{} ", OffsetDateTime::now_utc().format(&TIMESTAMP_FORMAT).unwrap()),
}

#[cfg(not(feature = "timestamps"))]
Expand Down

0 comments on commit 57da689

Please sign in to comment.