Need to actual start time of the original event here
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 8 May 2010 19:12:34 +0000 (15:12 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 8 May 2010 19:12:34 +0000 (15:12 -0400)
kronolith/edit.php

index bb4b1ab..d161cff 100644 (file)
@@ -88,6 +88,7 @@ if ($exception = Horde_Util::getFormData('del_exception')) {
                                                  $exception->mday);
                 $event->save();
                 $uid = $event->uid;
+                $originaltime = $event->start->strftime('%T');
 
                 /* Create one-time event. */
                 $kronolith_driver->open($target);
@@ -95,7 +96,7 @@ if ($exception = Horde_Util::getFormData('del_exception')) {
                 $event->readForm();
                 $event->recurrence->setRecurType(Horde_Date_Recurrence::RECUR_NONE);
                 $event->baseid = $uid;
-                $event->exceptionoriginaldate = $exception;
+                $event->exceptionoriginaldate = new Horde_Date($exception->strftime('%Y-%m-%d') . 'T' . $originaltime . $exception->strftime('%P'));
 
                 break;