Fix handling of alarms with "zero duration" (e.g. PT0S)
Open, NormalPublic


It looks like "zero" duration handling is wrong. Consider this PHP code

$e = new Event;
$va = new vectoralarm;
$a1 = new Alarm("Display alarm");
$a1->setRelativeStart(new Duration(0, 0, 0, 0, true), kolabformat::Start);

$xml = kolabformat::writeEvent($e);

The generated XML will contain <duration>-P</duration> or <duration>P</duration>, while it should be PT0S or PT0M.


Ticket Type

Event Timeline

machniak created this task.Aug 3 2015, 2:28 PM
machniak updated the task description. (Show Details)
machniak raised the priority of this task from to 60.
machniak changed Ticket Type from Task to Task.
machniak added a subscriber: machniak.
machniak closed this task as Invalid.Aug 3 2015, 4:14 PM
machniak claimed this task.

Oops. It looks that "P" is valid. I'll look for the issue in other places.

machniak reopened this task as Open.Aug 7 2015, 11:02 AM

Hmm... I'm not so sure. According to RFC5545 it is not valid.

grote moved this task from Incoming to In Sprint on the Product Owners board.Aug 11 2015, 1:52 PM
machniak removed machniak as the assignee of this task.Aug 25 2015, 11:19 AM
vanmeeuwen lowered the priority of this task from 60 to Normal.Mar 28 2019, 8:13 AM