diff --git a/bridges/relays/ethereum/Cargo.toml b/bridges/relays/ethereum/Cargo.toml index 413f16e9a0..6120710b33 100644 --- a/bridges/relays/ethereum/Cargo.toml +++ b/bridges/relays/ethereum/Cargo.toml @@ -20,7 +20,7 @@ rustc-hex = "2.0.1" serde = { version = "1.0.105", features = ["derive"] } serde_json = "1.0.40" 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" } # Substrate Based Dependencies diff --git a/bridges/relays/ethereum/src/main.rs b/bridges/relays/ethereum/src/main.rs index 583faf08c9..28ff6d18d9 100644 --- a/bridges/relays/ethereum/src/main.rs +++ b/bridges/relays/ethereum/src/main.rs @@ -66,8 +66,7 @@ fn initialize() { builder.parse_filters(&filters); builder.format(move |buf, record| { writeln!(buf, "{}", { - let timestamp = - time::strftime("%Y-%m-%d %H:%M:%S %Z", &time::now()).expect("Time is incorrectly formatted"); + let timestamp = time::OffsetDateTime::now_local().format("%Y-%m-%d %H:%M:%S %Z"); if cfg!(windows) { format!("{} {} {} {}", timestamp, record.level(), record.target(), record.args()) } else {