6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#2960] Fix for importing Yahoo Calendar CSV data
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__. __..__ .___. [__)[__](__ [__) _/ [__)| |.__)[__)./__.
Comment
> I have a data file from a Yahoo Calendar dump, in CSV format. It > contains a large number of entries that have no end date. Because of > a check in the Kronolith Driver, this causes the import to fail. The > following patch allows the data to import successfully, by making the > assumption that if no end date is given, use the start date. > However, I have no idea if this possibly breaks something else, so if > someone else could look at it that knows about what it might affect, > I'd appreciate it. > > > > Index: Driver.php > > =================================================================== > > RCS file: /repository/kronolith/lib/Driver.php,v > > retrieving revision 1.153 > > diff -u -r1.153 Driver.php > > --- Driver.php 7 Nov 2005 05:50:50 -0000 1.153 > > +++ Driver.php 12 Nov 2005 01:56:13 -0000 > > @@ -766,7 +766,7 @@ > > return PEAR::raiseError(_("Events must have a start date.")); > > } > > if (empty($hash['duration']) && empty($hash['end_date'])) { > > - return PEAR::raiseError(_("Events must have an end date > or a duration.")); > > + $hash['end_date'] = $hash['start_date']; > > } > > if (!empty($hash['duration'])) { > > $weeks = str_replace('W', '', $hash['duration'][1]);
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