Subject: Korganizer patch for Microsoft Exchange Calendar Plugin Time Offset bug
To: None <tech-pkg@netbsd.org>
From: Tad Hunt <tadhunt@gmail.com>
List: tech-pkg
Date: 02/20/2006 12:43:54
------=_Part_3571_1828592.1140468234144
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Folks,
The attached patch which I created from the kde subversion tree:
http://websvn.kde.org/branches/KDE/3.5/kdepim/libkpimexchange/core/utils.cp=
p?rev=3D508481&view=3Drev
Fixes the problems I had with my appointments in my Microsoft Exchange
calendar showing up at the wrong time in korganizer.
-Tad
------=_Part_3571_1828592.1140468234144
Content-Type: application/octet-stream; name=patch-al
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="patch-al"
$NetBSD$
--- libkpimexchange/core/utils.cpp.orig 2005-09-10 01:23:53.000000000 -0700
+++ libkpimexchange/core/utils.cpp
@@ -58,7 +58,7 @@ QDateTime utcAsZone( const QDateTime& ut
time_t v = epoch.secsTo( utc );
struct icaltimetype tt = icaltime_from_timet( v, 0 ); // 0: is_date=false
int offset = icaltimezone_get_utc_offset(
- icaltimezone_get_builtin_timezone_from_tzid( timeZoneId.latin1() ),
+ icaltimezone_get_builtin_timezone( timeZoneId.latin1() ),
&tt, &daylight );
return utc.addSecs( offset );
@@ -74,7 +74,7 @@ QDateTime zoneAsUtc( const QDateTime& zo
time_t v = epoch.secsTo( zone );
struct icaltimetype tt = icaltime_from_timet( v, 0 ); // 0: is_date=false
int offset = icaltimezone_get_utc_offset(
- icaltimezone_get_builtin_timezone_from_tzid( timeZoneId.latin1() ),
+ icaltimezone_get_builtin_timezone( timeZoneId.latin1() ),
&tt, &daylight );
return zone.addSecs( - offset );
------=_Part_3571_1828592.1140468234144--