Skip to content
Snippets Groups Projects
Commit 3da4e567 authored by dependabot-preview[bot]'s avatar dependabot-preview[bot] Committed by Bastian Köcher
Browse files

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: default avatardependabot-preview[bot] <support@dependabot.com>

* Update to new API.

Co-authored-by: default avatardependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: default avatarTomasz Drwięga <tomusdrw@gmail.com>
parent bf485197
Branches
No related merge requests found
......@@ -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
......
......@@ -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 {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment