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/tools/coverage/reporter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tools/coverage/reporter.rs') diff --git a/cli/tools/coverage/reporter.rs b/cli/tools/coverage/reporter.rs index f359755a9..4bb72b264 100644 --- a/cli/tools/coverage/reporter.rs +++ b/cli/tools/coverage/reporter.rs @@ -399,7 +399,7 @@ impl CoverageReporter for HtmlCoverageReporter { fn done(&mut self, coverage_root: &Path) { let summary = self.collect_summary(&self.file_reports); - let now = crate::util::time::utc_now().to_rfc2822(); + let now = chrono::Utc::now().to_rfc2822(); for (node, stats) in &summary { let report_path = -- cgit v1.2.3