projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* fmt_time() in 24-hour mode, no leading space
[citadel.git]
/
webcit
/
fmt_date.c
diff --git
a/webcit/fmt_date.c
b/webcit/fmt_date.c
index b0b493096830ea78035d73103741fff9a5dab5da..50afb580885b2ad106cc174ce4788fd71da4c542 100644
(file)
--- a/
webcit/fmt_date.c
+++ b/
webcit/fmt_date.c
@@
-132,7
+132,7
@@
void fmt_time(char *buf, time_t thetime)
hour = hour - 12;
if (time_format == WC_TIMEFORMAT_24) {
- sprintf(buf, "%
2
d:%02d",
+ sprintf(buf, "%d:%02d",
tm->tm_hour, tm->tm_min
);
}