Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Timezone / daylight switch problems < AIX

0 views
Skip to first unread message

forrest d whitcher

unread,
Apr 5, 1995, 3:00:00 AM4/5/95
to
Using samba 1.9.07, clients are being told Standard time after switch
to Summer time. The log.smb file indicates that the server thinks the
time is one hour behind actual system time.

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++(++++)

dirk de wachter

unread,
Apr 6, 1995, 3:00:00 AM4/6/95
to
f...@world.std.com (forrest d whitcher) wrote:
>
> Using samba 1.9.07, clients are being told Standard time after switch
> to Summer time. The log.smb file indicates that the server thinks the
> time is one hour behind actual system time.
>
> 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 :-( )

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

0 new messages