Skip to content

Instantly share code, notes, and snippets.

@roman-yepishev
Created May 12, 2015 03:26
Show Gist options
  • Save roman-yepishev/d9403c903550d34cde1d to your computer and use it in GitHub Desktop.
Save roman-yepishev/d9403c903550d34cde1d to your computer and use it in GitHub Desktop.
Dropping ical_tzid_prefix makes Open-Xchange like our timezone
--- libical-1.0/src/libical/icaltz-util.c.orig 2013-04-14 13:24:42.000000000 -0400
+++ libical-1.0/src/libical/icaltz-util.c 2015-05-11 23:21:20.632759999 -0400
@@ -349,11 +349,8 @@
tz_comp = icalcomponent_new (ICAL_VTIMEZONE_COMPONENT);
/* Add tzid property */
- tzid = (char *) malloc (strlen (ical_tzid_prefix) + strlen (location) + 8);
- sprintf (tzid, "%sTzfile/%s", ical_tzid_prefix, location);
- icalprop = icalproperty_new_tzid (tzid);
+ icalprop = icalproperty_new_tzid (location);
icalcomponent_add_property (tz_comp, icalprop);
- free (tzid);
icalprop = icalproperty_new_x (location);
icalproperty_set_x_name (icalprop, "X-LIC-LOCATION");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment