Make a note of the fact that we've hardcoded
authorArt Cancro <ajc@citadel.org>
Mon, 17 Jul 2006 03:37:14 +0000 (03:37 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 17 Jul 2006 03:37:14 +0000 (03:37 +0000)
the America/New_York timezone in for now.

citadel/ical_dezonify.c

index 81f396826e755bb5a7cd10c86969a51617ccc3fb..d83cbc35be109b022ad324dc9c2bf8acdf70dd4e 100644 (file)
 #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;
@@ -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;
 }