From c76f17a51e0fa6f298e6e8c937046be925c14e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Thu, 2 May 2024 16:53:08 +0200 Subject: [PATCH] fix: bug in delta output wrongly used buffer to output delta. Changed to use local.now() time instead. --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f67253f..af6cc1f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,7 +14,10 @@ fn main() -> io::Result<()> { let local: DateTime = Local::now(); - println!("delta: \t\t{time_only} -> {buffer}"); + println!( + "delta: \t\t{time_only} -> {}", + local.time().format("%H:%M:%S").to_string() + ); let dt = NaiveTime::signed_duration_since(local.time(), time_only);