From 3db3662b148630bc8b50ebcf9372a4f31304242d Mon Sep 17 00:00:00 2001 From: lunar-mining Date: Sun, 15 May 2022 11:34:35 +0200 Subject: [PATCH] util/ time: display seconds in Timestamp.format() --- src/util/time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/time.rs b/src/util/time.rs index d6ed32cad..ab8869d2d 100644 --- a/src/util/time.rs +++ b/src/util/time.rs @@ -155,7 +155,7 @@ pub fn timestamp_to_date(timestamp: i64, dt: &str) -> String { NaiveDateTime::from_timestamp(timestamp, 0).date().format("%A %-d %B").to_string() } "datetime" => { - NaiveDateTime::from_timestamp(timestamp, 0).format("%H:%M %A %-d %B").to_string() + NaiveDateTime::from_timestamp(timestamp, 0).format("%H:%M:%S %A %-d %B").to_string() } _ => "".to_string(), }