projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf9c536
)
Now the auto purger time drop list obeys the 24 hour option in the user
author
Dave West
<davew@uncensored.citadel.org>
Wed, 13 Feb 2008 18:25:56 +0000
(18:25 +0000)
committer
Dave West
<davew@uncensored.citadel.org>
Wed, 13 Feb 2008 18:25:56 +0000
(18:25 +0000)
preferances.
Its a little obfuscated though.
webcit/siteconfig.c
patch
|
blob
|
history
diff --git
a/webcit/siteconfig.c
b/webcit/siteconfig.c
index daf3ee8d6a9cdc1fd567ed2f1ca7362e60887f6e..3536f482938e6a70837357599c9fadb69e5331ce 100644
(file)
--- a/
webcit/siteconfig.c
+++ b/
webcit/siteconfig.c
@@
-349,8
+349,8
@@
void display_siteconfig(void)
sprintf(&purger[strlen(purger)], "<OPTION %s VALUE=\"%d\">%d:00%s</OPTION>\n",
((atoi(buf) == j) ? "SELECTED" : ""),
j,
- ((j == 0) ? 12 : ((j>12) ? j-12 : j)),
- ((j >= 12) ? "pm" : "am")
+ (
get_time_format_cached() == WC_TIMEFORMAT_24) ? j : (
(j == 0) ? 12 : ((j>12) ? j-12 : j)),
+ (
get_time_format_cached() == WC_TIMEFORMAT_24) ? "" : (
(j >= 12) ? "pm" : "am")
);
}
sprintf(&purger[strlen(purger)], "</SELECT>");