[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdepim/plugins/kmail/bodypartformatter
From: Till Adam <adam () kde ! org>
Date: 2004-08-04 11:58:48
Message-ID: 20040804115848.5186C2E8D () office ! kde ! org
[Download RAW message or body]
CVS commit by tilladam:
Make sure the users timezone setting is used when rendering the invitation
summary. Thanks to Reinhold for tireless timezone bugfix consulting and
Matt for tireless timezone bug reporting. :)
M +4 -2 text_calendar.cpp 1.20
--- kdepim/plugins/kmail/bodypartformatter/text_calendar.cpp #1.19:1.20
@@ -40,4 +40,6 @@
#include <libkcal/incidence.h>
+#include <kpimprefs.h> // for the timezone
+
#include <kmail/callback.h>
#include <kmail/kmmessage.h>
@@ -241,7 +243,7 @@ class Formatter : public KMail::Interfac
if ( iCalendar.isEmpty() ) return AsIcon;
- // FIXME: Get the correct time zone from korganizerrc
- CalendarLocal cl;
+ CalendarLocal cl( KPimPrefs::timezone() );
ICalFormat format;
+ format.setTimeZone( cl.timeZoneId(), !cl.isLocalTime() );
format.fromString( &cl, iCalendar );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic