util/ time: display seconds in Timestamp.format()

This commit is contained in:
lunar-mining
2022-05-15 11:34:35 +02:00
parent b2b42415bf
commit 3db3662b14

View File

@@ -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(),
}