* fmt_time() in 24-hour mode, no leading space
[citadel.git] / webcit / fmt_date.c
index b0b493096830ea78035d73103741fff9a5dab5da..50afb580885b2ad106cc174ce4788fd71da4c542 100644 (file)
@@ -132,7 +132,7 @@ void fmt_time(char *buf, time_t thetime)
                hour = hour - 12;
 
        if (time_format == WC_TIMEFORMAT_24) {
-               sprintf(buf, "%2d:%02d",
+               sprintf(buf, "%d:%02d",
                        tm->tm_hour, tm->tm_min
                );
        }