[Tickets #5652] iCalendar DTEND wrong date

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Aug 21 10:05:00 UTC 2007


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

Ticket URL: http://bugs.horde.org/ticket/?id=5652
-----------------------------------------------------------------------
 Ticket             | 5652
 Created By         | rsalmon at mbpgroup.com
 Summary            | iCalendar DTEND wrong date
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 2. Medium
 Owners             | 
-----------------------------------------------------------------------


rsalmon at mbpgroup.com (2007-08-21 03:05) wrote:

I am trying to sync a calendar and it does work with the path below

I guess over righting and reading the same value at the same time doesn't
work all the time.


--- /var/www/html/horde/framework/iCalendar/iCalendar.php       2007-06-27
19:23:11.000000000 +0200
+++ iCalendar.php       2007-08-21 11:59:05.000000000 +0200
@@ -848,9 +848,9 @@
                         // VCALENDAR 1.0 uses T000000 - T235959 for all
day events:
                         if ($this->isOldFormat() && $name == 'DTEND') {
                             $value = new Horde_Date(array(
-                                   'year' => $value->year,
-                                   'month' => $value->month,
-                                   'mday' => $value->mday - 1));
+                                   'year' =>
$attribute['value']['year'],
+                                   'month' =>
$attribute['value']['month'],
+                                   'mday' => ($attribute['value']['mday']
- 1)));
                             $value->correct();
                             $value = $this->_exportDate($value,
'235959');
                         } else {




More information about the bugs mailing list