From: Art Cancro Date: Mon, 17 Jul 2006 03:37:14 +0000 (+0000) Subject: Make a note of the fact that we've hardcoded X-Git-Tag: v7.86~3989 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=9e06b59a5657e73b17bed64aad35213d3652e5c9 Make a note of the fact that we've hardcoded the America/New_York timezone in for now. --- diff --git a/citadel/ical_dezonify.c b/citadel/ical_dezonify.c index 81f396826..d83cbc35b 100644 --- a/citadel/ical_dezonify.c +++ b/citadel/ical_dezonify.c @@ -27,6 +27,13 @@ #include #include "ical_dezonify.h" + +/* + * Figure out which time zone needs to be used for timestamps that are + * not UTC and do not have a time zone specified. + * + * FIXME - most sites are not in New York :) + */ icaltimezone *get_default_icaltimezone(void) { char *location = NULL; @@ -34,11 +41,11 @@ icaltimezone *get_default_icaltimezone(void) { location = "America/New_York"; if (location) { - zone = icaltimezone_get_builtin_timezone (location); + zone = icaltimezone_get_builtin_timezone(location); } - if (!zone) - zone = icaltimezone_get_utc_timezone (); - + if (!zone) { + zone = icaltimezone_get_utc_timezone(); + } return zone; }