Kaynağa Gözat

util/time: remove the name of day when printing date

ghassmo 4 yıl önce
ebeveyn
işleme
cc823f1a65
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/util/time.rs

+ 1 - 1
src/util/time.rs

@@ -215,7 +215,7 @@ pub fn timestamp_to_date(timestamp: i64, format: DateFormat) -> String {
 
     match format {
         DateFormat::Date => {
-            NaiveDateTime::from_timestamp(timestamp, 0).date().format("%A %-d %B").to_string()
+            NaiveDateTime::from_timestamp(timestamp, 0).date().format("%-d %b").to_string()
         }
         DateFormat::DateTime => {
             NaiveDateTime::from_timestamp(timestamp, 0).format("%H:%M:%S %A %-d %B").to_string()