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

Fix build with libical >= 3.0.0

Index: kcal/icalformat_p.cpp
--- kcal/icalformat_p.cpp.orig
+++ kcal/icalformat_p.cpp
@@ -2087,7 +2087,6 @@ icaltimetype ICalFormatImpl::writeICalDate( const QDat
   t.second = 0;
 
   t.is_date = 1;
-  t.is_utc = 0;
   t.zone = 0;
 
   return t;
@@ -2106,8 +2105,7 @@ icaltimetype ICalFormatImpl::writeICalDateTime( const 
   t.second = datetime.time().second();
 
   t.is_date = 0;
-  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 );
 
@@ -2174,7 +2172,7 @@ icalproperty *ICalFormatImpl::writeICalDateTimePropert
   }
 
   KTimeZone ktz;
-  if ( !t.is_utc ) {
+  if ( !icaltime_is_utc(t) ) {
     ktz = dt.timeZone();
   }
 
@@ -2207,7 +2205,7 @@ KDateTime ICalFormatImpl::readICalDateTime( icalproper
 //  _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 {
