[Tickets #7846] Re: Sunbird displays recurring events one day short

bugs at horde.org bugs at horde.org
Mon Mar 30 17:00:05 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7846
------------------------------------------------------------------------------
  Ticket             | 7846
  Updated By         | avo at trustsec.de
  Summary            | Sunbird displays recurring events one day short
  Queue              | Kronolith
  Version            | 2.3-RC1
  Type               | Bug
  State              | No Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


avo at trustsec.de (2009-03-30 13:00) wrote:

Hi,

> The following event from my Horde calendar is one day short in
> Lightning as well as Outlook. The event starts on 14th April and is
> supposed to end on 17th April. In Lightning and Outlook the event
> ends on 16th April.
>
> BEGIN:VEVENT
> DTSTART:20090414T070000Z
> DTEND:20090414T150000Z
> [...]
> RRULE:FREQ=DAILY;INTERVAL=1;UNTIL=20090417
> END:VEVENT
>
> If I edit the event in Lightning I get:
>
> BEGIN:VEVENT
> DTSTART:20090414T070000Z
> DTEND:20090414T150000Z
> [...]
> RRULE:FREQ=DAILY;UNTIL=20090417T070000Z;INTERVAL=1
> X-MOZ-GENERATION:1
> END:VEVENT

I use the following workaround for the time being:

--- Recurrence.php.orig 2008-09-05 19:13:08.000000000 +0200
+++ Recurrence.php      2009-03-30 18:42:00.000000000 +0200
@@ -1127,7 +1127,11 @@
          }

          if ($this->hasRecurEnd()) {
-            $rrule .= ';UNTIL=' . $calendar->_exportDate($this->recurEnd);
+            $until = new Horde_Date($this->recurEnd);
+            $until->hour = $this->start->hour;
+            $until->min = $this->start->min;
+            $until->sec = $this->start->sec;
+            $rrule .= ';UNTIL=' . $calendar->_exportDateTime($until);
          }
          if ($count = $this->getRecurCount()) {
              $rrule .= ';COUNT=' . $count;

BTW, the Spam protection is not usable in Firefox. The ASCII art  
letters aren't shown properly.






More information about the bugs mailing list