snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 5773958c0ea22ce2b98fc432aa59f97544ca8316
parent f9be6c58ed6615e08f6c1ed5bbc645cea89ca2de
Author: default <nobody@localhost>
Date:   Thu,  6 Oct 2022 19:45:37 +0200

Do not show the hour in the date.

Diffstat:
Mhtml.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/html.c b/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"); } else { + xs *sd = xs_crop(xs_dup(v), 0, 10); 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); }