[Tickets #4851] Re: Calendar export issues (alarms & timezone)

bugs@bugs.horde.org bugs at bugs.horde.org
Tue Jan 23 09:03:19 PST 2007


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

Ticket URL: http://bugs.horde.org/ticket/?id=4851
-----------------------------------------------------------------------
 Ticket             | 4851
 Updated By         | horde.org at soehnel-software.de
 Summary            | Calendar export issues (alarms & timezone)
 Queue              | Kronolith
 Version            | 2.1.2
 Type               | Bug
 State              | Accepted
 Priority           | 2. Medium
 Owners             | 
-----------------------------------------------------------------------


horde.org at soehnel-software.de (2007-01-23 09:03) wrote:

Hi there!

First off all: Sorry for my bad english!

I use kronolith and nag and export the ics-files for my Desktopo
(Rainlendar).

To get alarm and reminder working I've edited the Driver.php in both,
kronolith and nag.

I dont know if it is a god job or not, but it works fine for me.
May be its buggy or not, so use it as an suggestion, if you want.

Comments are wellcome!

Greetings from Germany,
Sven

In kronolith/lib/Driver.php I've replaced Line 482-486:
[code]
         //vCalendar 1.0 alarms. Has to be replaced with vAlarm components
for
         RFC 2445, if anyone ever requests.
        if (!empty($this->alarm)) {
            $vEvent->setAttribute('AALARM', $this->start->timestamp() -
$this->alarm * 60);
        }

[/code]
with this:
[code]
        // vCalendar 2.0 vAlarms. Test by Sven Soehnel
        // RFC 2445, if anyone ever requests.
        if (!empty($this->alarm)) {
            $vEvent->setAttribute('BEGIN','VALARM');
            $vEvent->setAttribute('ACTION','AUDIO');
            $vEvent->setAttribute('TRIGGER;VALUE=DURATION',
'-PT'.$this->alarm.'M');
            $vEvent->setAttribute('END','VALARM');
        }
[/code]

In nag/lib/Driver.php I've replaced lines 117-122:
[code]
        if (!empty($task['due']) && empty($task['completed'])) {
            $vTodo->setAttribute('DUE', $task['due']);
            if (!empty($task['alarm'])) {
                $vTodo->setAttribute('AALARM', $task['due'] -
$task['alarm'] * 60);
            }
        }
[/code]

with:
[code]
        // vCalendar 2.0 vAlarms. Test by Sven Soehnel
        // RFC 2445, if anyone ever requests.
        if (!empty($task['due']) && empty($task['completed'])) {
            $vTodo->setAttribute('DUE', $task['due']);
            if (!empty($task['alarm'])) {
            $vTodo->setAttribute('BEGIN','VALARM');
            $vTodo->setAttribute('ACTION','AUDIO');
            $vTodo->setAttribute('TRIGGER;VALUE=DURATION',
'-PT'.$task['alarm'].'M');
            $vTodo->setAttribute('END','VALARM');
            }
        }
[/code]




More information about the bugs mailing list