author | zecke <zecke> | 2002-11-02 13:12:09 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-11-02 13:12:09 (UTC) |
commit | c795a77698b9fc785fb5f04fab8fed33f0570c3f (patch) (side-by-side diff) | |
tree | d34d959a2e2d3937632f1eaea10fbd72cd7ac996 | |
parent | 87504764286a40162d74b03f26e040d4142c0cab (diff) | |
download | opie-c795a77698b9fc785fb5f04fab8fed33f0570c3f.zip opie-c795a77698b9fc785fb5f04fab8fed33f0570c3f.tar.gz opie-c795a77698b9fc785fb5f04fab8fed33f0570c3f.tar.bz2 |
Actually use local time in vCal
-rw-r--r-- | library/backend/event.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/backend/event.cpp b/library/backend/event.cpp index 7ccf16b..2d02a34 100644 --- a/library/backend/event.cpp +++ b/library/backend/event.cpp @@ -1126,27 +1126,27 @@ namespace { }; static VObject *createVObject( const Event &e ) { VObject *vcal = newVObject( VCCalProp ); safeAddPropValue( vcal, VCVersionProp, "1.0" ); VObject *event = safeAddProp( vcal, VCEventProp ); - safeAddPropValue( event, VCDTstartProp, TimeConversion::toISO8601( e.start() ) ); - safeAddPropValue( event, VCDTendProp, TimeConversion::toISO8601( e.end() ) ); + safeAddPropValue( event, VCDTstartProp, toISOLocal( e.start() ) ); + safeAddPropValue( event, VCDTendProp, toISOLocal( e.end() ) ); safeAddPropValue( event, "X-Qtopia-NOTES", e.description() ); safeAddPropValue( event, VCDescriptionProp, e.description() ); safeAddPropValue( event, VCLocationProp, e.location() ); if ( e.hasAlarm() ) { VObject *alarm = safeAddProp( event, VCAAlarmProp ); QDateTime dt = e.start(); dt = dt.addSecs( -e.alarmTime()*60 ); - safeAddPropValue( alarm, VCRunTimeProp, TimeConversion::toISO8601( dt ) ); + safeAddPropValue( alarm, VCRunTimeProp, toISOLocal( dt ) ); safeAddPropValue( alarm, VCAudioContentProp, (e.alarmSound() == Event::Silent ? "silent" : "alarm" ) ); } safeAddPropValue( event, "X-Qtopia-TIMEZONE", e.timeZone() ); if ( e.type() == Event::AllDay ) safeAddPropValue( event, "X-Qtopia-AllDay", e.timeZone() ); |