X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fical_dezonify.c;h=d83cbc35be109b022ad324dc9c2bf8acdf70dd4e;hb=9e06b59a5657e73b17bed64aad35213d3652e5c9;hp=81f396826e755bb5a7cd10c86969a51617ccc3fb;hpb=0d30aff6e90ad2e589408efc025d6d0bafcd9205;p=citadel.git 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; }