diff options
Diffstat (limited to 'textproc/libpathan/files/patch-src-context-DynamicContextImpl.cpp')
-rw-r--r-- | textproc/libpathan/files/patch-src-context-DynamicContextImpl.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/textproc/libpathan/files/patch-src-context-DynamicContextImpl.cpp b/textproc/libpathan/files/patch-src-context-DynamicContextImpl.cpp new file mode 100644 index 000000000000..1bf631be58b6 --- /dev/null +++ b/textproc/libpathan/files/patch-src-context-DynamicContextImpl.cpp @@ -0,0 +1,25 @@ +--- src/context/DynamicContextImpl.cpp.orig Mon Aug 9 20:19:54 2004 ++++ src/context/DynamicContextImpl.cpp Fri Nov 3 11:52:11 2006 +@@ -39,6 +39,13 @@ + + static CodepointCollation g_codepointCollation; + ++inline int gettimezone() ++{ ++ time_t tt; ++ time(&tt); ++ struct tm *tm_p = gmtime(&tt); ++ return (int)mktime(tm_p) - (int)tt; ++} + DynamicContextImpl::DynamicContextImpl(const StaticContext *staticContext, XPath2MemoryManager* memMgr) + : _staticContext(staticContext), + _nsResolver(staticContext->getNSResolver()), +@@ -148,7 +155,7 @@ + tz = _timezone; + #else /*WIN32*/ + tzset (); +- tz = timezone; ++ tz = gettimezone(); + #endif + // validate tzone + Timezone tzone(tz); |