$OpenBSD: patch-kcalcore_icalformat_p_cpp,v 1.1 2017/11/08 05:37:50 ajacoutot Exp $

Fix build with libical >= 3.0.0

Index: kcalcore/icalformat_p.cpp
--- kcalcore/icalformat_p.cpp.orig
+++ kcalcore/icalformat_p.cpp
@@ -2301,7 +2301,6 @@ icaltimetype ICalFormatImpl::writeICalDate(const QDate
     t.second = 0;
 
     t.is_date = 1;
-    t.is_utc = 0;
     t.zone = 0;
 
     return t;
@@ -2322,8 +2321,7 @@ icaltimetype ICalFormatImpl::writeICalDateTime(const K
         t.minute = datetime.time().minute();
         t.second = datetime.time().second();
     }
-    t.zone = 0;   // zone is NOT set
-    t.is_utc = datetime.isUtc() ? 1 : 0;
+    t.zone = datetime.isUtc() ? icaltimezone_get_utc_timezone() : 0;
 
     // _dumpIcaltime( t );
 
@@ -2398,7 +2396,7 @@ icalproperty *ICalFormatImpl::writeICalDateTimePropert
     }
 
     KTimeZone ktz;
-    if (!t.is_utc) {
+    if (!icaltime_is_utc(t)) {
         ktz = dt.timeZone();
     }
 
@@ -2431,7 +2429,7 @@ KDateTime ICalFormatImpl::readICalDateTime(icalpropert
 //  _dumpIcaltime( t );
 
     KDateTime::Spec timeSpec;
-    if (t.is_utc  ||  t.zone == icaltimezone_get_utc_timezone()) {
+    if (icaltime_is_utc(t)  ||  t.zone == icaltimezone_get_utc_timezone()) {
         timeSpec = KDateTime::UTC;   // the time zone is UTC
         utc = false;    // no need to convert to UTC
     } else {
