]> code.citadel.org Git - citadel.git/blobdiff - webcit/fmt_date.c
* realize types in preferences like thought at the start
[citadel.git] / webcit / fmt_date.c
index 5c625d6676db36830edd099bcae79f8f2385afa6..b0b493096830ea78035d73103741fff9a5dab5da 100644 (file)
@@ -236,3 +236,26 @@ time_t httpdate_to_timestamp(StrBuf *buf)
        t = mktime(&tt);
        return t;
 }
+
+
+void LoadTimeformatSettingsCache(StrBuf *Preference, long lvalue)
+{
+       int *time_format_cache;
+       
+        time_format_cache = &(WC->time_format_cache);
+        if (lvalue == 24) 
+                *time_format_cache = WC_TIMEFORMAT_24;
+        else
+                *time_format_cache = WC_TIMEFORMAT_AMPM;
+}
+
+
+
+void 
+InitModule_DATETIME
+(void)
+{
+       RegisterPreference(HKEY("calhourformat"), _("Time format"), PRF_INT, LoadTimeformatSettingsCache);
+
+
+}