Back to index

citadel  8.12
Functions
ical_dezonify.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void ical_dezonify (icalcomponent *cal)
icaltimezone * get_default_icaltimezone (void)

Function Documentation

icaltimezone* get_default_icaltimezone ( void  )

Definition at line 34 of file ical_dezonify.c.

                                             {

        icaltimezone *zone = NULL;
       char *default_zone_name = config.c_default_cal_zone;
       //char *default_zone_name = "America/New_York";

        if (!zone) {
                zone = icaltimezone_get_builtin_timezone(default_zone_name);
        }
        if (!zone) {
              syslog(LOG_ALERT,
                     "Unable to load '%s' time zone.  Defaulting to UTC.\n",
                     default_zone_name);
                zone = icaltimezone_get_utc_timezone();
       }
       if (!zone) {
              syslog(LOG_ALERT, "Unable to load UTC time zone!\n");
       }
        return zone;
}

Here is the caller graph for this function:

void ical_dezonify ( icalcomponent *  cal)

Definition at line 225 of file ical_dezonify.c.

                                       {
       icalcomponent *vt = NULL;

       /* syslog(LOG_DEBUG, "ical_dezonify() started\n"); */

       /* Convert all times to UTC */
       ical_dezonify_recurse(cal, cal);

       /* Strip out VTIMEZONE subcomponents -- we don't need them anymore */
       while (vt = icalcomponent_get_first_component(
                     cal, ICAL_VTIMEZONE_COMPONENT), vt != NULL) {
              icalcomponent_remove_component(cal, vt);
              icalcomponent_free(vt);
       }

       /* syslog(LOG_DEBUG, "ical_dezonify() completed\n"); */
}

Here is the call graph for this function: