mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 12:11:09 +00:00
Bump time from 0.1.42 to 0.2.9 (#44)
* Bump time from 0.1.42 to 0.2.9 Bumps [time](https://github.com/time-rs/time) from 0.1.42 to 0.2.9. - [Release notes](https://github.com/time-rs/time/releases) - [Changelog](https://github.com/time-rs/time/blob/master/CHANGELOG.md) - [Commits](https://github.com/time-rs/time/commits/v0.2.9) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Update to new API. Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Tomasz Drwięga <tomusdrw@gmail.com>
This commit is contained in:
committed by
Bastian Köcher
parent
bf4851976d
commit
3da4e56702
@@ -20,7 +20,7 @@ rustc-hex = "2.0.1"
|
|||||||
serde = { version = "1.0.105", features = ["derive"] }
|
serde = { version = "1.0.105", features = ["derive"] }
|
||||||
serde_json = "1.0.40"
|
serde_json = "1.0.40"
|
||||||
sp-bridge-eth-poa = { path = "../../primitives/ethereum-poa" }
|
sp-bridge-eth-poa = { path = "../../primitives/ethereum-poa" }
|
||||||
time = "0.1"
|
time = "0.2"
|
||||||
web3 = { git = "https://github.com/svyatonik/rust-web3.git", branch = "fix_receipt" }
|
web3 = { git = "https://github.com/svyatonik/rust-web3.git", branch = "fix_receipt" }
|
||||||
|
|
||||||
# Substrate Based Dependencies
|
# Substrate Based Dependencies
|
||||||
|
|||||||
@@ -66,8 +66,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 =
|
let timestamp = time::OffsetDateTime::now_local().format("%Y-%m-%d %H:%M:%S %Z");
|
||||||
time::strftime("%Y-%m-%d %H:%M:%S %Z", &time::now()).expect("Time is incorrectly formatted");
|
|
||||||
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