Explorar o código

Do not show the hour in the date.

default %!s(int64=3) %!d(string=hai) anos
pai
achega
5773958c0e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      html.c

+ 2 - 1
html.c

@@ -206,8 +206,9 @@ d_char *html_msg_icon(snac *snac, d_char *os, char *msg)
             s = xs_str_cat(s, "<br>\n<time>&nbsp;</time>\n");
             s = xs_str_cat(s, "<br>\n<time>&nbsp;</time>\n");
         }
         }
         else {
         else {
+            xs *sd = xs_crop(xs_dup(v), 0, 10);
             xs *s1 = xs_fmt(
             xs *s1 = xs_fmt(
-                "<br>\n<time class=\"dt-published snac-pubdate\">%s</time>\n", v);
+                "<br>\n<time class=\"dt-published snac-pubdate\">%s</time>\n", sd);
 
 
             s = xs_str_cat(s, s1);
             s = xs_str_cat(s, s1);
         }
         }