projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bc9fa1
)
Fixed the last instance where the time format doesn't follow the user
author
Dave West
<davew@uncensored.citadel.org>
Sun, 28 Oct 2007 23:40:44 +0000
(23:40 +0000)
committer
Dave West
<davew@uncensored.citadel.org>
Sun, 28 Oct 2007 23:40:44 +0000
(23:40 +0000)
preferances flag.
webcit/fmt_date.c
patch
|
blob
|
history
diff --git
a/webcit/fmt_date.c
b/webcit/fmt_date.c
index 198e8ff60538a279185641f34abb0541fc333e43..a93e75f827883860e32e5462733b45774e7d03ba 100644
(file)
--- a/
webcit/fmt_date.c
+++ b/
webcit/fmt_date.c
@@
-81,7
+81,10
@@
void fmt_date(char *buf, time_t thetime, int brief)
}
}
else {
- wc_strftime(buf, 32, "%c", &tm);
+ if (time_format == WC_TIMEFORMAT_24)
+ wc_strftime(buf, 32, "%a %b %d %Y %T %Z", &tm);
+ else
+ wc_strftime(buf, 32, "%a %b %d %Y %r %Z", &tm);
}
}