From fa1ba256d20236042455abb31a92d2a1d27ee58f Mon Sep 17 00:00:00 2001 From: Felipe Baltor Date: Thu, 23 May 2024 08:59:11 -0300 Subject: refactor: remove custom `utc_now` in favor of `chrono::Utc:now` feature (#23888) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR removes the use of the custom `utc_now` function in favor of the `chrono` implementation. It resolves #22864. --------- Co-authored-by: Bartek IwaƄczuk --- cli/bench/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/bench/main.rs') diff --git a/cli/bench/main.rs b/cli/bench/main.rs index 8f0627558..cfbc44e8c 100644 --- a/cli/bench/main.rs +++ b/cli/bench/main.rs @@ -17,8 +17,6 @@ use std::process::Stdio; use std::time::SystemTime; use test_util::PathRef; -include!("../util/time.rs"); - mod http; mod lsp; @@ -442,7 +440,8 @@ async fn main() -> Result<()> { env::set_current_dir(test_util::root_path())?; let mut new_data = BenchResult { - created_at: utc_now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true), + created_at: chrono::Utc::now() + .to_rfc3339_opts(chrono::SecondsFormat::Secs, true), sha1: test_util::run_collect( &["git", "rev-parse", "HEAD"], None, -- cgit v1.2.3