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 758192 - exslt:date:add resets timezone to UTC
exslt:date:add resets timezone to UTC
Status: RESOLVED FIXED
Product: libxslt
Classification: Platform
Component: general
1.1.26
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2015-11-16 19:54 UTC by fil
Modified: 2016-04-28 19:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
files to reproduce (361 bytes, application/x-gzip)
2015-11-16 19:54 UTC, fil
Details

Description fil 2015-11-16 19:54:37 UTC
Created attachment 315705 [details]
files to reproduce

the following xsl fragments should produce identical output, but …

<xsl:value-of select="date:date-time()"/>
=> 2015-11-16T20:23:09+01:00
<xsl:value-of select="date:add( date:date-time(), 'P0M')"/>
=> 2015-11-16T19:23:09Z

both in same xslt-template and same xsltproc run.

libxslt1.1:amd64  1.1.26-14.1
libxml2:amd64  2.8.0+dfsg1-7+wheezy4
Debian 7.9

reproduce with attached files:
xsltproc lib/test.xsl lib/test.xml 
=>
<?xml version="1.0"?>
2015-11-16T20:49:17+01:00
2015-11-16T19:49:17Z

regards, Filip Moritz
Comment 1 Nick Wellnhofer 2016-04-28 19:02:11 UTC
Fixed with the following commit:

https://git.gnome.org/browse/libxslt/commit/?id=b4d496ddfe33b3e22fc3e70179c4a6e49702b4cf