فهرست منبع

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

lunar-mining 4 سال پیش
والد
کامیت
3db3662b14
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/util/time.rs

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