Added a global system config item for the default time
[citadel.git] / citadel / ical_dezonify.c
index d7fb476709a9084c9d4b66a99f2775e3ad0222c4..ec5d868687947016b479c73f68d0f46e70b7a7c9 100644 (file)
  */
 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.
@@ -53,11 +50,9 @@ icaltimezone *get_default_icaltimezone(void) {
        }
  */
 
-
-        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();
        }