summaryrefslogtreecommitdiff
path: root/src/libical/icaltimezone.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libical/icaltimezone.c')
-rw-r--r--src/libical/icaltimezone.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libical/icaltimezone.c b/src/libical/icaltimezone.c
index cf57de51..4737e16a 100644
--- a/src/libical/icaltimezone.c
+++ b/src/libical/icaltimezone.c
@@ -2247,7 +2247,12 @@ void icaltimezone_truncate_vtimezone(icalcomponent *vtz,
break;
case ICAL_RDATE_PROPERTY: {
- struct rdate rdate = { prop, icalproperty_get_rdate(prop) };
+ struct icaldatetimeperiodtype dtp = icalproperty_get_rdate(prop);
+ struct rdate rdate;
+
+ rdate.prop = prop;
+ rdate.date.time = dtp.time;
+ rdate.date.period = dtp.period;
icalarray_append(rdates, &rdate);
break;