Hello community, here is the log from the commit of package libopensync checked in at Fri Aug 31 15:54:34 CEST 2007. -------- --- libopensync/libopensync.changes 2007-08-15 19:01:28.000000000 +0200 +++ /mounts/work_src_done/STABLE/libopensync/libopensync.changes 2007-08-30 18:40:48.000000000 +0200 @@ -1,0 +2,6 @@ +Thu Aug 30 18:39:05 CEST 2007 - cstender@suse.de + +- added patch to avoid displaying a reminder after an event if + DTSTART use a local timestamp (OpenSync Bug: #437) + +------------------------------------------------------------------- New: ---- libopensync-fix-vcal-reminder.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libopensync.spec ++++++ --- /var/tmp/diff_new_pack.t18393/_old 2007-08-31 15:54:09.000000000 +0200 +++ /var/tmp/diff_new_pack.t18393/_new 2007-08-31 15:54:09.000000000 +0200 @@ -14,13 +14,14 @@ BuildRequires: glib2-devel libxml2-devel python-devel sqlite-devel swig URL: http://www.opensync.org Version: 0.22 -Release: 37 +Release: 43 Summary: A Platform and Distribution Independent Synchronization Framework License: LGPL v2 or later Group: Productivity/Other Autoreqprov: on Source: %{name}-%{version}.tar.bz2 Patch0: libopensync-wrapper-wno_uninitialized.diff +Patch1: libopensync-fix-vcal-reminder.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %define prefix /usr @@ -96,6 +97,7 @@ %prep %setup -q %patch0 +%patch1 %build autoreconf -sif @@ -158,6 +160,9 @@ %{_bindir}/osynctest %changelog +* Thu Aug 30 2007 - cstender@suse.de +- added patch to avoid displaying a reminder after an event if + DTSTART use a local timestamp (OpenSync Bug: #437) * Wed Aug 15 2007 - cstender@suse.de - added libopensync-wrapper-wno_uninitialized.diff * Wed Jul 18 2007 - dmueller@suse.de ++++++ libopensync-fix-vcal-reminder.diff ++++++ Index: formats/vformats-xml/xml-vcal.c =================================================================== --- formats/vformats-xml/xml-vcal.c (Revision 1863) +++ formats/vformats-xml/xml-vcal.c (Revision 2505) @@ -2018,6 +2018,8 @@ isruntime = TRUE; } } + + g_free(value); startvtime = osxml_find_node(dtstart, "Content"); @@ -2027,26 +2029,28 @@ /* Duration */ } else { tmp = osxml_find_node(trigger, "Content"); + duration = osync_time_alarmdu2sec(tmp); g_free(tmp); tmp = osxml_find_node(dtstart, "Content"); - /* AlarmTrigger MUST be UTC (see rfc2445). - So there is an offset to UTC of 0 seconds. */ - if (osync_time_isutc(tmp)) - osync_trace(TRACE_INTERNAL, "WARNNING: timestamp is not UTC: %s", tmp); dtstarted = osync_time_vtime2unix(tmp, 0); - g_free(tmp); - dtstarted += duration; runtime = osync_time_unix2vtime(&dtstarted); + + if (!osync_time_isutc(tmp)) { + osync_trace(TRACE_INTERNAL, "WARNNING: timestamp is not UTC - converting reminder to localtime"); + char *utc_runtime = runtime; + runtime = osync_time_vtime2localtime(utc_runtime, 0); + g_free(utc_runtime); + } + + g_free(tmp); } - g_free(value); - vformat_attribute_add_value(attr, runtime); add_value(attr, root, "AlarmDuration", encoding); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org