-rw-r--r-- | libopie2/opiepim/core/opimevent.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libopie2/opiepim/core/opimevent.cpp b/libopie2/opiepim/core/opimevent.cpp index 739cb6f..c656c3d 100644 --- a/libopie2/opiepim/core/opimevent.cpp +++ b/libopie2/opiepim/core/opimevent.cpp @@ -638,20 +638,20 @@ void OPimEvent::fromMap( const QMap<int, QString>& map ) if ( isAllDay() ) { OPimTimeZone utc = OPimTimeZone::utc(); setStartDateTime(utc.toDateTime( start ) ); setEndDateTime ( utc.toDateTime( end ) ); } else { /* to current date time */ - OPimTimeZone to_zone( ev.timeZone().isEmpty() ? OPimTimeZone::utc() : OPimTimeZone::current() ); + OPimTimeZone to_zone( timeZone().isEmpty() ? OPimTimeZone::utc() : OPimTimeZone::current() ); - ev.setStartDateTime(to_zone.toDateTime( start)); - ev.setEndDateTime (to_zone.toDateTime( end)); + setStartDateTime(to_zone.toDateTime( start)); + setEndDateTime (to_zone.toDateTime( end)); } int alarmTime = -1; if ( !map[ OPimEvent::FAlarm ].isEmpty() ) alarmTime = map[ OPimEvent::FAlarm ].toInt(); int sound = ( ( map[ OPimEvent::FSound ] == "loud" ) ? OPimAlarm::Loud : OPimAlarm::Silent ); if ( ( alarmTime != -1 ) ) |