Re: [xml] extension date function bug?



On Mon, Apr 26, 2004 at 04:34:45PM -0000, spinmar interfree it wrote:

Hi all,

I have a problem with exslt function in libxslt

I have an xml file with a tag LMT (seconds from the epoch) whose value is 1102028400.

I have a perl program which simply call ctime on this value: the result is

Fri Dec 3 0:00:00 2004

  This seems to be converted to your local timezone before being printed.

If I try to use exslt (I'm using libxslt 1.0.33) whithin a xsl:

.....
<xsl:value-of select="date:add('1970-01-01T00:00:00Z', date:duration(LMT))" />
........

I obtain:

*2004-12-02T23:00:00Z*

This is different. I don't know if the problem is perl or exslt.

  This is the same time but on greenwitch medidian. As the italian and
are likely to be CET , this looks normal to me.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]