mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
util/ time: display seconds in Timestamp.format()
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user