** 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.

  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

To manage notifications about this bug go to:

Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to