Greetings, is there any way to force Samba to return the non-daylight savings time when Win/OS2 clients attempt to syncronise their clocks with it? The only way I can tell is to force the entire system to ignore DST using /etc/localtime regards, -- scott
At 16:10 28/06/00 +1000, scott wrote:>Greetings, > >is there any way to force Samba to return the non-daylight savings time when >Win/OS2 clients attempt to syncronise their clocks with it? The only way I >can tell is to force the entire system to ignore DST using /etc/localtimeLook in the man page for smb.conf under "time offset". It allows you to tell Samba to give any time (relative to local time) that you want. To ignore DST you would probably have to change this twice a year though (I'd suggest having a cron job alter smb.conf and restart Samba on the apropriate dates, that way it won't mess you up in the future. Someone else may have a more elegant solution though). -- Linux: Because rebooting is for adding new hardware.
[scott <samba@slittle.com>]> is there any way to force Samba to return the non-daylight savings > time when Win/OS2 clients attempt to syncronise their clocks with it? > The only way I can tell is to force the entire system to ignore DST > using /etc/localtimeIn your Samba startup script, set the TZ variable to a value that implies no daylight savings. I.e. my "correct" TZ is "CST6CDT" but the no-DST variant would be simply "CST6". This is untested but it should work, since Samba uses the patented formula "offset = gmtime() - localtime()" to determine time zone, and localtime() honors the TZ variable. Peter