Explorar el Código

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

ghassmo hace 4 años
padre
commit
cc823f1a65
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()