mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-18 21:05:40 +00:00
fixed time format string (#54)
This commit is contained in:
committed by
Bastian Köcher
parent
c0881f5582
commit
1da78b8ab4
@@ -50,7 +50,7 @@ fn initialize() {
|
|||||||
builder.parse_filters(&filters);
|
builder.parse_filters(&filters);
|
||||||
builder.format(move |buf, record| {
|
builder.format(move |buf, record| {
|
||||||
writeln!(buf, "{}", {
|
writeln!(buf, "{}", {
|
||||||
let timestamp = time::OffsetDateTime::now_local().format("%Y-%m-%d %H:%M:%S %Z");
|
let timestamp = time::OffsetDateTime::now_local().format("%Y-%m-%d %H:%M:%S %z");
|
||||||
if cfg!(windows) {
|
if cfg!(windows) {
|
||||||
format!("{} {} {} {}", timestamp, record.level(), record.target(), record.args())
|
format!("{} {} {} {}", timestamp, record.level(), record.target(), record.args())
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user