author | mickeyl <mickeyl> | 2004-04-04 17:05:29 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-04 17:05:29 (UTC) |
commit | 77185b587adfa158dadab204f3c78db94af3e099 (patch) (unidiff) | |
tree | d0d7a2d3e756784ea259199d218b73c4770cdfd1 /core/pim/datebook/dateentryimpl.cpp | |
parent | daef74a7e852855f781765fad7969b6c83e2e9c6 (diff) | |
download | opie-77185b587adfa158dadab204f3c78db94af3e099.zip opie-77185b587adfa158dadab204f3c78db94af3e099.tar.gz opie-77185b587adfa158dadab204f3c78db94af3e099.tar.bz2 |
fix debugging stuff (see addressbook)
Diffstat (limited to 'core/pim/datebook/dateentryimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/dateentryimpl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/pim/datebook/dateentryimpl.cpp b/core/pim/datebook/dateentryimpl.cpp index 42bdbe2..297da94 100644 --- a/core/pim/datebook/dateentryimpl.cpp +++ b/core/pim/datebook/dateentryimpl.cpp | |||
@@ -422,43 +422,43 @@ Event DateEntry::event() | |||
422 | } | 422 | } |
423 | // don't set the time if theres no need too | 423 | // don't set the time if theres no need too |
424 | if ( ev.type() == Event::AllDay ) { | 424 | if ( ev.type() == Event::AllDay ) { |
425 | startTime.setHMS( 0, 0, 0 ); | 425 | startTime.setHMS( 0, 0, 0 ); |
426 | endTime.setHMS( 23, 59, 59 ); | 426 | endTime.setHMS( 23, 59, 59 ); |
427 | } | 427 | } |
428 | 428 | ||
429 | // adjust start and end times based on timezone | 429 | // adjust start and end times based on timezone |
430 | QDateTime start( startDate, startTime ); | 430 | QDateTime start( startDate, startTime ); |
431 | QDateTime end( endDate, endTime ); | 431 | QDateTime end( endDate, endTime ); |
432 | time_t start_utc, end_utc; | 432 | time_t start_utc, end_utc; |
433 | 433 | ||
434 | //Opie::Core::odebug << "tz: " << timezone->currentZone() << oendl; | 434 | //odebug << "tz: " << timezone->currentZone() << oendl; |
435 | 435 | ||
436 | // get real timezone | 436 | // get real timezone |
437 | QString realTZ; | 437 | QString realTZ; |
438 | realTZ = QString::fromLocal8Bit( getenv("TZ") ); | 438 | realTZ = QString::fromLocal8Bit( getenv("TZ") ); |
439 | 439 | ||
440 | // set timezone | 440 | // set timezone |
441 | if ( setenv( "TZ", timezone->currentZone(), true ) != 0 ) | 441 | if ( setenv( "TZ", timezone->currentZone(), true ) != 0 ) |
442 | Opie::Core::owarn << "There was a problem setting the timezone." << oendl; | 442 | owarn << "There was a problem setting the timezone." << oendl; |
443 | 443 | ||
444 | // convert to UTC based on selected TZ (calling tzset internally) | 444 | // convert to UTC based on selected TZ (calling tzset internally) |
445 | start_utc = TimeConversion::toUTC( start ); | 445 | start_utc = TimeConversion::toUTC( start ); |
446 | end_utc = TimeConversion::toUTC( end ); | 446 | end_utc = TimeConversion::toUTC( end ); |
447 | 447 | ||
448 | // done playing around... put it all back | 448 | // done playing around... put it all back |
449 | unsetenv( "TZ" ); | 449 | unsetenv( "TZ" ); |
450 | if ( !realTZ.isNull() ) | 450 | if ( !realTZ.isNull() ) |
451 | if ( setenv( "TZ", realTZ, true ) != 0 ) | 451 | if ( setenv( "TZ", realTZ, true ) != 0 ) |
452 | Opie::Core::owarn << "There was a problem setting the timezone." << oendl; | 452 | owarn << "There was a problem setting the timezone." << oendl; |
453 | 453 | ||
454 | // convert UTC to local time (calling tzset internally) | 454 | // convert UTC to local time (calling tzset internally) |
455 | ev.setStart( TimeConversion::fromUTC( start_utc ) ); | 455 | ev.setStart( TimeConversion::fromUTC( start_utc ) ); |
456 | ev.setEnd( TimeConversion::fromUTC( end_utc ) ); | 456 | ev.setEnd( TimeConversion::fromUTC( end_utc ) ); |
457 | 457 | ||
458 | // we only have one type of sound at the moment... LOUD!!! | 458 | // we only have one type of sound at the moment... LOUD!!! |
459 | if ( comboSound->currentItem() != 0 ) | 459 | if ( comboSound->currentItem() != 0 ) |
460 | st = Event::Loud; | 460 | st = Event::Loud; |
461 | else | 461 | else |
462 | st = Event::Silent; | 462 | st = Event::Silent; |
463 | ev.setAlarm( checkAlarm->isChecked(), spinAlarm->value(), st ); | 463 | ev.setAlarm( checkAlarm->isChecked(), spinAlarm->value(), st ); |
464 | if ( rp.type != Event::NoRepeat ) | 464 | if ( rp.type != Event::NoRepeat ) |