6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/3/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8474] All day events cause crash with Funambol outlook connector
*
Your Email Address
*
Spam protection
Enter the letters below:
.__..___..__ ._.. , [__] | [__) | \./ | | | | \_|_ |
Comment
> What about the following : > > I have included the DTSTART case in the getAllAttributes() loop again > to streamline the code and modified the DTEND case to use the same > formating as the DTSTART. The variable "$start" is only used to > compare against "$alarm" as far as i can see and this is working. The > "$end" is only used to compute "Duration" which is no SIF-E attribute > anyway as far as i can see?? > > > > --- lib/SyncML/Device/Sync4j.php.orig 2009-08-14 17:01:24.000000000 +0200 > > +++ lib/SyncML/Device/Sync4j.php 2009-08-19 16:26:18.000000000 +0200 > > @@ -829,7 +829,8 @@ > > $hash = array('ReminderSet' => 0, > > 'IsRecurring' => 0, > > 'BusyStatus' => 2); > > - $alarm = null; > > + $alarm = $end = null; > > + > > foreach ($content->getAllAttributes() as $item) { > > $GLOBALS['backend']->logMessage( > > sprintf('Sync4j for name %s, value %s', > > @@ -843,18 +844,19 @@ > > if (!empty($item['params']['VALUE']) && > > $item['params']['VALUE'] == 'DATE') { > > $hash['AllDayEvent'] = 1; > > - $hash['Start'] = sprintf('%04d-%02d-%02dT00:00:00Z', > > - $item['value']['year'], > > - $item['value']['month'], > > - $item['value']['mday']); > > + $date = new Horde_Date(array('year' => > $item['value']['year'], > > + 'month' => > $item['value']['month'], > > + 'mday' => > $item['value']['mday'])); > > + $date->correct(); > > + $hash['Start'] = $date->format('Y-m-d'); > > $start = mktime(0, 0, 0, > > $item['value']['month'], > > $item['value']['mday'], > > $item['value']['year']); > > } else { > > $hash['AllDayEvent'] = 0; > > - $hash['Start'] = Horde_iCalendar::_exportDateTime > > - ($item['value']); > > + $hash['Start'] = Horde_iCalendar::_exportDateTime( > > + $item['value']); > > $start = $item['value']; > > } > > break; > > @@ -863,10 +865,12 @@ > > if (!empty($item['params']['VALUE']) && > > $item['params']['VALUE'] == 'DATE') { > > $hash['AllDayEvent'] = 1; > > - $hash['End'] = sprintf('%04d-%02d-%02dT00:00:00Z', > > - $item['value']['year'], > > - $item['value']['month'], > > - $item['value']['mday']); > > + $date = new Horde_Date(array('year' => > $item['value']['year'], > > + 'month' => > $item['value']['month'], > > + 'mday' => > $item['value']['mday'])); > > + $date->mday--; > > + $date->correct(); > > + $hash['End'] = $date->format('Y-m-d'); > > $end = mktime(0, 0, 0, > > $item['value']['month'], > > $item['value']['mday'], > > @@ -983,13 +987,7 @@ > > $hash['DayOfWeekMask'] = $mask; > > } else { > > $hash['RecurrenceType'] = 2; > > - $start = $content->getAttribute('DTSTART'); > > - if (!empty($start['params']['VALUE']) && > > - $start['params']['VALUE'] == 'DATE') { > > - $hash['DayOfMonth'] = $start['value']['mday']; > > - } else { > > - $hash['DayOfMonth'] = date('j', $start); > > - } > > + $hash['DayOfMonth'] = date('j', $start); > > } > > break; > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers