HomePhabricator

[Explorer] Fix `chrono` deprecation warning for `Utc.timestamp`

Description

[Explorer] Fix chrono deprecation warning for Utc.timestamp

Summary:
Utc.timestamp has been deprecated in a recent version of the chrono crate.

Switching to Utc.timestamp_nanos fixes this.

Test Plan:

  1. Build the explorer, no warnings
  2. Timestamps for blocks on the explorer are still correct

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D12981

Details

Provenance
tobias_ruckAuthored on Jan 13 2023, 21:03
tobias_ruckPushed on Jan 13 2023, 22:00
Reviewer
Restricted Project
Differential Revision
D12981: [Explorer] Fix `chrono` deprecation warning for `Utc.timestamp`
Parents
rABC0c6df4f04134: [explorer] Add a Dockerfile for running the explorer
Branches
Unknown
Tags
Unknown