6.0.0-beta1
7/18/25

[#11916] Import CSV of recurring events fails with DateTime::__construct() error
Summary Import CSV of recurring events fails with DateTime::__construct() error
Queue Kronolith
Queue Version 4.0.2
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester mampfikloss (at) hotmail (dot) com
Created 12/21/2012 (4592 days ago)
Due
Updated 01/15/2013 (4567 days ago)
Assigned
Resolved 01/15/2013 (4567 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/15/2013 03:59:17 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
01/15/2013 03:59:01 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit d5b14913d4978c6af062b80d7ba3acbc2cdd7d65
Author: Jan Schneider <jan@horde.org>
Date:   Tue Jan 15 16:58:25 2013 +0100

     [jan] More robust date parsing during event importing (Bug #11916).

  kronolith/docs/CHANGES  |    1 +
  kronolith/lib/Event.php |   31 +++++++++++++++++++------------
  kronolith/package.xml   |    2 ++
  3 files changed, 22 insertions(+), 12 deletions(-)

http://git.horde.org/horde-git/-/commit/d5b14913d4978c6af062b80d7ba3acbc2cdd7d65
01/15/2013 03:58:55 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit b36a654c6d48b55aa61832d36f551b7d3ca3dee4
Author: Jan Schneider <jan@horde.org>
Date:   Tue Jan 15 16:05:40 2013 +0100

     [jan] Catch DateTime exception in Horde_Date_Utils:daysInMonth() 
(Bug #11916).

  framework/Date/lib/Horde/Date/Utils.php |    6 +++++-
  framework/Date/package.xml              |    4 ++--
  2 files changed, 7 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/b36a654c6d48b55aa61832d36f551b7d3ca3dee4
12/21/2012 09:07:49 PM mampfikloss (at) hotmail (dot) com Comment #1
Priority ⇒ 2. Medium
New Attachment: recur.csv Download
Patch ⇒ No
Milestone ⇒
Queue ⇒ Kronolith
Summary ⇒ Import CSV of recurring events fails with DateTime::__construct() error
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
I exported my calendar events from kronolith and tried to import it 
again. This fails with the following error message:

DateTime::__construct(): Failed to parse time string (-001-11-01) at 
position 7 (-): Double timezone specification

By removing the recurring events (every line with the recur_type 
column set to a non-null value) I can "solve" the problem. The file 
without the recurring events imports successfully.

It failes in kronolith's data.php on the $event = 
$kronolith_driver->getEvent(); line and catches an exception there.

I've attached an csv file containing just one event. Trying to import 
this csv file results in the error.

Saved Queries