zone for unzoned calendar items. Patched ical_dezonify to use it.
char c_journal_email; /* Perform journaling of email */
char c_journal_pubmsgs; /* Perform journaling of non-email */
char c_journal_dest[128]; /* Where to send journalized msgs */
+ char c_default_cal_zone[128]; /* Default calendar time zone */
};
cprintf("%d\n", config.c_journal_email);
cprintf("%d\n", config.c_journal_pubmsgs);
cprintf("%s\n", config.c_journal_dest);
+ cprintf("%s\n", config.c_default_cal_zone);
cprintf("000\n");
}
case 48:
safestrncpy(config.c_journal_dest, buf,
sizeof config.c_journal_dest);
+ case 49:
+ safestrncpy(config.c_default_cal_zone, buf,
+ sizeof config.c_default_cal_zone);
}
++a;
}
*/
icaltimezone *get_default_icaltimezone(void) {
- char *location = NULL;
icaltimezone *zone = NULL;
-
-
/*
This doesn't even belong here.
I'm just keeping it here until I put it somewhere permanent.
}
*/
-
- location = "America/New_York";
- if (location) {
- zone = icaltimezone_get_builtin_timezone(location);
- }
+ if (!zone) {
+ zone = icaltimezone_get_builtin_timezone(config.c_default_cal_zone);
+ }
if (!zone) {
zone = icaltimezone_get_utc_timezone();
}
void do_system_configuration(CtdlIPC *ipc)
{
-#define NUM_CONFIGS 49
+#define NUM_CONFIGS 50
char buf[SIZ];
char sc[NUM_CONFIGS][256];
46. Flag (0 or 1) - perform journaling of email messages
47. Flag (0 or 1) - perform journaling of non-email messages
48. Address to which journalized messages are to be sent
+ 49. Default time zone (Olsen database name) for unzoned calendar items
CONF also accepts two additional commands: GETSYS and PUTSYS followed by an
arbitrary MIME type (such as application/x-citadel-internet-config) which