-rw-r--r-- | libkcal/vcalformat.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libkcal/vcalformat.cpp b/libkcal/vcalformat.cpp index a6ae1bc..df93209 100644 --- a/libkcal/vcalformat.cpp +++ b/libkcal/vcalformat.cpp | |||
@@ -64,2 +64,3 @@ bool VCalFormat::load(Calendar *calendar, const QString &fileName) | |||
64 | clearException(); | 64 | clearException(); |
65 | if ( ! useLocalTime ) | ||
65 | useLocalTime = mCalendar->isLocalTime(); | 66 | useLocalTime = mCalendar->isLocalTime(); |
@@ -92,2 +93,3 @@ bool VCalFormat::save(Calendar *calendar, const QString &fileName) | |||
92 | mCalendar = calendar; | 93 | mCalendar = calendar; |
94 | if ( ! useLocalTime ) | ||
93 | useLocalTime = mCalendar->isLocalTime(); | 95 | useLocalTime = mCalendar->isLocalTime(); |
@@ -1174,2 +1176,4 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) | |||
1174 | else if (tmpStr.left(2) == "YM") { | 1176 | else if (tmpStr.left(2) == "YM") { |
1177 | // we have to set this such that recurrence accepts addYearlyNum(tmpDay); | ||
1178 | anEvent->recurrence()->setYearly(Recurrence::rYearlyMonth, 1, -1); | ||
1175 | int index = tmpStr.find(' '); | 1179 | int index = tmpStr.find(' '); |
@@ -1208,2 +1212,4 @@ Event* VCalFormat::VEventToEvent(VObject *vevent) | |||
1208 | else if (tmpStr.left(2) == "YD") { | 1212 | else if (tmpStr.left(2) == "YD") { |
1213 | // we have to set this such that recurrence accepts addYearlyNum(tmpDay); | ||
1214 | anEvent->recurrence()->setYearly(Recurrence::rYearlyDay, 1, -1); | ||
1209 | int index = tmpStr.find(' '); | 1215 | int index = tmpStr.find(' '); |
@@ -1538,2 +1544,3 @@ void VCalFormat::populate(VObject *vcal) | |||
1538 | if ((curVO = isAPropertyOf(vcal, VCTimeZoneProp)) != 0) { | 1544 | if ((curVO = isAPropertyOf(vcal, VCTimeZoneProp)) != 0) { |
1545 | if ( vObjectUStringZValue(curVO) != 0 ) { | ||
1539 | char *s = fakeCString(vObjectUStringZValue(curVO)); | 1546 | char *s = fakeCString(vObjectUStringZValue(curVO)); |
@@ -1542,3 +1549,3 @@ void VCalFormat::populate(VObject *vcal) | |||
1542 | } | 1549 | } |
1543 | 1550 | } | |
1544 | 1551 | ||