The current duration format in types.js does this (on line 130):
if(neg) dur.push('-');
which outputs property values like TRIGGER:P-T11M. Unfortunately, this is wrong (according to the spec at http://www.ietf.org/rfc/rfc2445.txt, it should be negative sign before the P, like dur-value = (["+"] / "-") "P" (dur-date / dur-time / dur-week)
It should really do this:
if(neg) dur.unshift('-');
which would produce the right thing: TRIGGER:-PT11M.
The current duration format in types.js does this (on line 130):
which outputs property values like TRIGGER:P-T11M. Unfortunately, this is wrong (according to the spec at http://www.ietf.org/rfc/rfc2445.txt, it should be negative sign before the P, like dur-value = (["+"] / "-") "P" (dur-date / dur-time / dur-week)
It should really do this:
which would produce the right thing: TRIGGER:-PT11M.