zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #02599
[Bug 866959] Re: Build error due to time offset code
** Changed in: zorba
Status: New => In Progress
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/866959
Title:
Build error due to time offset code
Status in Zorba - The XQuery Processor:
In Progress
Bug description:
In the file context/dynamic_context.cpp on line 154 is the following code:
lTimeShift = gmtm.tm_gmtoff;
This code assumes that the time.h tm struct includes a tm_gmtoff member which is not always the case as for example on Cygwin. By changing the line to:
struct ::timeval ignore;
struct ::timezone time_zone;
gettimeofday(&ignore, &time_zone);
lTimeShift = -time_zone.tz_minuteswest * 60;
The code compiles and I believe it does achieve the same
functionality.
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/866959/+subscriptions