17 lines
621 B
Plaintext
17 lines
621 B
Plaintext
$OpenBSD: patch-libxslt_extra_c,v 1.3 2007/07/05 16:05:56 steven Exp $
|
|
--- libxslt/extra.c.orig Wed Jan 3 16:11:57 2007
|
|
+++ libxslt/extra.c Mon Jul 2 15:23:38 2007
|
|
@@ -241,10 +241,9 @@ xsltFunctionLocalTime(xmlXPathParserContextPtr ctxt, i
|
|
local_tm = localtime(&gmt);
|
|
|
|
/*
|
|
- * Calling localtime() has the side-effect of setting timezone.
|
|
- * After we know the timezone, we can adjust for it
|
|
+ * Correct timezone : offset from UTC in seconds
|
|
*/
|
|
- lmt = gmt - timezone;
|
|
+ lmt = gmt - local_tm->tm_gmtoff;
|
|
|
|
/*
|
|
* FIXME: it's been too long since I did manual memory management.
|