From 6336104a10237e92c5e92e9bd1241c44ab5332e7 Mon Sep 17 00:00:00 2001 From: Jacob Casper Date: Mon, 9 Nov 2020 11:13:09 -0600 Subject: [PATCH] Pad minute value in time display string --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e128efe..ca15fa2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -38,7 +38,7 @@ fn get_local_time_string() -> std::string::String { use chrono::prelude::*; let local_time = chrono::prelude::Local::now(); return format!( - "{}-{}-{:02} {}:{}", + "{}-{}-{:02} {}:{:02}", local_time.year(), local_time.month(), local_time.day(), -- 2.20.1