After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 92818 - date:difference fails on dates on different days
date:difference fails on dates on different days
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
unspecified
Other FreeBSD
: Normal major
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2002-09-09 04:30 UTC by michael
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description michael 2002-09-09 04:30:11 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 .
Comment 1 Daniel Veillard 2002-09-20 11:29:17 UTC
Okay Igor Zlatkovic and Charlie Bozeman have fixed this problem
in CVS, this should be in the next release,

  thanks for the report,

Daniel
Comment 2 Daniel Veillard 2002-09-26 21:47:07 UTC
Should be closed with the last release,

  thanks,

Daniel