blob: 1bf631be58b60f727f4a1d217d16c73304376413 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
|