projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6c3914
)
* fmt_time() in 24-hour mode, no leading space
author
Art Cancro
<ajc@citadel.org>
Wed, 21 Jan 2009 03:38:18 +0000
(
03:38
+0000)
committer
Art Cancro
<ajc@citadel.org>
Wed, 21 Jan 2009 03:38:18 +0000
(
03:38
+0000)
webcit/fmt_date.c
patch
|
blob
|
history
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
);
}