]> code.citadel.org Git - citadel.git/blobdiff - webcit/ical_dezonify.c
Configure and observe the server setting for default timezone
[citadel.git] / webcit / ical_dezonify.c
index 6a87a53c87161debca57e9191b7a1f7f10f75912..c352edbc4e12706ed12e048255ab5f985001f66f 100644 (file)
  */
 icaltimezone *get_default_icaltimezone(void) {
 
-        char *location = NULL;
         icaltimezone *zone = NULL;
 
-        location = "America/New_York";
-        if (location) {
-                zone = icaltimezone_get_builtin_timezone(location);
+        if (!zone) {
+                zone = icaltimezone_get_builtin_timezone(serv_info.serv_default_cal_zone);
         }
         if (!zone) {
                 zone = icaltimezone_get_utc_timezone();