openbsd-ports/textproc/libxslt/patches/patch-libxslt_extra_c

17 lines
606 B
Plaintext
Raw Normal View History

$OpenBSD: patch-libxslt_extra_c,v 1.2 2003/08/11 23:49:45 marcm Exp $
--- libxslt/extra.c.orig Wed Feb 5 03:29:50 2003
+++ libxslt/extra.c Mon Jul 7 21:49:03 2003
@@ -241,10 +241,9 @@ xsltFunctionLocalTime(xmlXPathParserCont
2002-07-11 13:21:41 -04:00
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.