include.h section for aix says '#define HAVE_TIMEZONE', while
other unixen are configed with '#define HAVE_GETTIMEOFDAY'.
AIX actually has both, Any thoughts how to fix (aside from
'local offset = -60' which I've done for the moment :-( )
Thanks, forrest
Forrest Whitcher f...@world.std.com
Boston Scientific Corp. Senior Engineer
480 Pleasant St. Watertown MA 02172
617.972.4289 http://world.std.com/~fw
--
Forrest Whitcher f...@world.std.com
Boston Scientific Corp.
Watertown MA 02172 617.972.4289
gc2.1+ GE$/AT/CS d++(--) H--@!H s+:+ g+ p2? au-- a39 v+(---) C++(++++)
I already sent this to Andrew:
if you have #HAVE_TIMEZONE, the system will provide two global
(extern) variables: timezone *AND* daylight (at least this is the
case at my HPUX machine, but seems to be in the standard C lib)
Now timezone is (correctly) set to the timezone: e.g. mine is MET-1,
so the offset is set to UTC+1.
But - and here's the problem - the daylight variable is not used.
This variable is either 1, when daylight savings are in effect
or 0 when not.
Solution:
change line 158 in util.c (procedure TimeDiff) for version 1.9.10 from:
timediff = timezone
to:
timediff = timezone - 3600*daylight
And *some* of your problems might disappear...
Remark: I haven't really checked the #HAVE_GETTIMEOFDAY option, but
I suspect it to have a similar problem
Dirk.De...@rug.ac.be,
Hydraulics Laboratory, University of Gent, Belgium