summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/html.c b/html.c
index 491ee67..bd9a176 100644
--- a/html.c
+++ b/html.c
@@ -1071,8 +1071,12 @@ xs_str *html_entry(snac *snac, xs_str *os, const xs_dict *msg, int local,
1071 if (t1 > 0 && t1 > t0) { 1071 if (t1 > 0 && t1 > t0) {
1072 time_t diff_time = t1 - t0; 1072 time_t diff_time = t1 - t0;
1073 xs *tf = xs_str_time_diff(diff_time); 1073 xs *tf = xs_str_time_diff(diff_time);
1074 char *p = tf;
1074 1075
1075 xs *s1 = xs_fmt("<p>%s %s</p>", L("Closes in"), tf); 1076 /* skip leading zeros */
1077 for (; *p == '0' || *p == ':'; p++);
1078
1079 xs *s1 = xs_fmt("<p>%s %s</p>", L("Closes in"), p);
1076 c = xs_str_cat(c, s1); 1080 c = xs_str_cat(c, s1);
1077 } 1081 }
1078 } 1082 }