From a37edf211294f3b83c34c469b86cdb6e2edcd0be Mon Sep 17 00:00:00 2001 From: Milo Turner Date: Tue, 10 Mar 2020 18:33:47 -0400 Subject: [PATCH] fix leading zeros in timestamp formatting --- hptp/src/logger.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hptp/src/logger.rs b/hptp/src/logger.rs index bf8ec0d..5a02a05 100644 --- a/hptp/src/logger.rs +++ b/hptp/src/logger.rs @@ -120,7 +120,7 @@ impl Display for LogMessage<'_> { use chrono::Timelike; write!( f, - "{:02}:{:02}:{:02} {:03.3} ", + "{:02}:{:02}:{:02} {:07.3} ", self.timestamp.hour(), self.timestamp.minute(), self.timestamp.second(),