the America/New_York timezone in for now.
#include <ical.h>
#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;
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;
}