Samba 3.0 alpha 20 problem with timegm->mktime() on HP-UX

jra at dp.samba.org jra at dp.samba.org
Thu Nov 28 00:22:01 GMT 2002


On Wed, Nov 27, 2002 at 04:06:58PM -0800, P Ranjit Kumar wrote:
> Hi
> 
> I had a problem with net ads join on HP-UX. I used mktime() instead of the
> timegm() that was used in Samba 3.0 alpha 20.
> 
> net ads join gives error saying that the times are out of sync (Windows 2000
> DC and Samba HP Unix Box)
> 
> But they are in perfectly in sync. mktime() interprets the time as local
> time (PST8PDT). You need to set the TZ environment variable to GMT to solve
> the problem and get it working.

Yes, this is by specification (that mktime uses local time).

Is there no gmtime on HPUX ? It's in the single unix spec and
in the ISO C spec.

Jeremy



More information about the samba-technical mailing list