GNOME Bugzilla – Bug 92818
date:difference fails on dates on different days
Last modified: 2009-08-15 18:40:50 UTC
On an invocation of a current xsltproc (Using libxml 20424, libxslt 10020 and libexslt 711) the function call date:difference('2002-05-02T23:59:59','2002-05-03T00:00:01') returns -P1DT23H59M58S when the two arguments are inverted the same value is returned. The correct value should be P2S or -P2S When the two dates are on the same day, date:difference calculates correct values, but the +/- is the opposite from the specification on http://www.exslt.org/date/functions/difference/index.html .
Okay Igor Zlatkovic and Charlie Bozeman have fixed this problem in CVS, this should be in the next release, thanks for the report, Daniel
Should be closed with the last release, thanks, Daniel