diff options
Diffstat (limited to 'src/prompt.rs')
-rw-r--r-- | src/prompt.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/prompt.rs b/src/prompt.rs index 1ab60d2..6c95c0e 100644 --- a/src/prompt.rs +++ b/src/prompt.rs @@ -181,11 +181,14 @@ impl Prompt { &self, t: &mut dyn term::Terminal<Output = W>, ) { + let desc = + time::format_description::parse("[hour]:[minute]:[second]") + .unwrap(); self.print_host(t, "["); self.colors.print( t, "default", - &format!("{}", self.data.time.format("%H:%M:%S")), + &self.data.time.format(&desc).unwrap(), ); self.print_host(t, "]"); } |