Summary: | Timezone for DUE in allday events unhandled in calendar.xml script | ||
---|---|---|---|
Product: | SyncEvolution | Reporter: | peterjan |
Component: | SyncEvolution | Assignee: | Patrick Ohly <patrick.ohly> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | syncevolution-issues |
Version: | 1.3 | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
peterjan
2012-09-23 12:13:47 UTC
(In reply to comment #0) > Timezone for DUE in allday events is unhandled in calendar.xml script ( > src/syncevo/configs/scripting/11calendar.xml ) > > > if (ITEMDATATYPE()=="vCalendar10" && ALLDAYCOUNT(DUE,DUE,TRUE,TRUE)>0) { > > DUE = DATEONLY(DUE); > > } > > should probably have: > > DUE = CONVERTTOUSERZONE(DUE); > before DUE = DATEONLY(DUE); Looks reasonable. Does it fix the problem for you? Yes it does - my patched version works fine. Fix is included in 1.3.1 (under preparation): commit e8adfadceeb062ea3d311f1f651332301cd306c8 Author: Patrick Ohly <patrick.ohly@intel.com> Date: Fri Oct 5 10:22:23 2012 +0000 vCalendar 1.0 + tasks: DUE date could be shifted by a day (FDO #55238) Because of incomplete support for time conversion, the due date could get mixed up when phone and PC were set to something other than UTC. Reported and fixed by Peter Jan. diff --git a/src/syncevo/configs/scripting/11calendar.xml b/src/syncevo/configs/scripting/11calendar.xml index 613f061..db4720f 100644 --- a/src/syncevo/configs/scripting/11calendar.xml +++ b/src/syncevo/configs/scripting/11calendar.xml @@ -117,6 +117,7 @@ if (SUMMARY==EMPTY) SUMMARY="unnamed"; // set dummy summary if we still don't have one // due shaping for non-iCalendar 2.0 if (ITEMDATATYPE()=="vCalendar10" && ALLDAYCOUNT(DUE,DUE,TRUE,TRUE)>0) { + DUE = CONVERTTOUSERZONE(DUE); DUE = DATEONLY(DUE); } if (ITEMDATATYPE()=="vCalendar10") { |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.