[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] PATCH, RFC: Korganizer and timezones (bug 68345)
From:       Shaheed <srhaque () iee ! org>
Date:       2003-12-21 14:58:09
[Download RAW message or body]

On Tuesday 16 December 2003 21:57, Shaheed wrote:
> But all that's for later. For now, I'll try to sort out
> timezones-for-all-dates.


Patch for review/approval as promised...feedback is particularly appreciated 
if you use anything other than standard Event entries (e.g. Journal, 
Free/Busy, etc.) since I don't have any real test data for those.

Thanks, Shaheed



["timezone.diff" (text/x-diff)]

Index: icalformatimpl.cpp
===================================================================
RCS file: /home/kde/kdepim/libkcal/icalformatimpl.cpp,v
retrieving revision 1.95
diff -u -p -r1.95 icalformatimpl.cpp
--- icalformatimpl.cpp	15 Dec 2003 20:25:46 -0000	1.95
+++ icalformatimpl.cpp	21 Dec 2003 14:51:46 -0000
@@ -1075,6 +1075,7 @@ Todo *ICalFormatImpl::readTodo(icalcompo
 
       case ICAL_DUE_PROPERTY:  // due date
         icaltime = icalproperty_get_due(p);
+        readTzidParameter(p,icaltime);
         if (icaltime.is_date) {
           todo->setDtDue(QDateTime(readICalDate(icaltime),QTime(0,0,0)));
           todo->setFloats(true);
@@ -1088,6 +1089,7 @@ Todo *ICalFormatImpl::readTodo(icalcompo
 
       case ICAL_COMPLETED_PROPERTY:  // completion date
         icaltime = icalproperty_get_completed(p);
+        readTzidParameter(p,icaltime);
         todo->setCompleted(readICalDateTime(icaltime));
         break;
 
@@ -1272,6 +1274,8 @@ FreeBusy *ICalFormatImpl::readFreeBusy(i
 
       case ICAL_FREEBUSY_PROPERTY:  //Any FreeBusy Times
         icalperiod = icalproperty_get_freebusy(p);
+        readTzidParameter(p,icalperiod.start);
+        readTzidParameter(p,icalperiod.end);
         period_start = readICalDateTime(icalperiod.start);
         period_end = readICalDateTime(icalperiod.end);
         freebusy->addPeriod(period_start, period_end);
@@ -1432,6 +1436,7 @@ void ICalFormatImpl::readIncidence(icalc
 
       case ICAL_CREATED_PROPERTY:
         icaltime = icalproperty_get_created(p);
+        readTzidParameter(p,icaltime);
         incidence->setCreated(readICalDateTime(icaltime));
         break;
 
@@ -1442,6 +1447,7 @@ void ICalFormatImpl::readIncidence(icalc
 
       case ICAL_LASTMODIFIED_PROPERTY:  // last modification date
         icaltime = icalproperty_get_lastmodified(p);
+        readTzidParameter(p,icaltime);
         incidence->setLastModified(readICalDateTime(icaltime));
         break;
 
@@ -1502,6 +1508,7 @@ void ICalFormatImpl::readIncidence(icalc
 
       case ICAL_EXDATE_PROPERTY:
         icaltime = icalproperty_get_exdate(p);
+        readTzidParameter(p,icaltime);
         if (icaltime.is_date) {
           incidence->addExDate(readICalDate(icaltime));
         } else {


_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic