Hi. I'm running on a Windows 98 client and an RS6000 with Samba 2.0.7 (latest). I've used "net time \\ibrissde /SET /YES" to sync the times between the two systems ... but if I save a file onto the RS6000 through Samba on a mapped drive the file in UNIX is 1 hour old. I haven't been able to find any help on this so I'm assuming it's a bug !? This was also true for a Windows 95 client. Thanks Mike
At 05:46 PM 5/30/00 +1000, Mike.Molnar@sita.int wrote:>>Hi. I'm running on a Windows 98 client and an RS6000 with Samba 2.0.7 >(latest). > >I've used "net time \\ibrissde /SET /YES" to sync the times between the two >systems ... but if I save a file onto the RS6000 through Samba on a mappeddrive>the file in UNIX is 1 hour old.Almost invariably this means that one of your machines has a timezone configuration problem (and curse SMB for using local time instead of UTC). Either one of them thinks it's an hour ahead (or behind) the other or one thinks it's on daylight-savings time (some *ix OS's have a problem with this I'm told). Usually this can be solved by playing with the timezone/clock settings on one of your machines, failing that you can always override it in smb.conf, to quote the man page: time offset (G) This parameter is a setting in minutes to add to the normal GMT to local time conversion. This is useful if you are serving a lot of PCs that have incorrect daylight saving time handling. Default: time offset = 0 Example: time offset = 60 -- Who is this General Failure, and why is he reading my hard disk?
Thanks for your response, I believe I need to provide more information, basically: the PC is on GMT with Daylight saving time, showing 11:40 the RS6000 is on BST, showing 11:40 The PC time is actually set using the "net time" command from the RS6000. When I write a file to one of the samba shares, the file save time is 1 hour old. If I set "time offset = 60" in smb.conf, then when I do my "net time" the PC time will be 1 hour ahead but the file save time will now be correct ?? I think it's something on the UNIX box and my first guess is that Samba is not handling it correctly. But can I fix this or work around it? Basically I would like my PC and RS6000 to be in time sync'd and also have the files written to the samba shares on the RS6000 to have the same time. Thanks again Mike ________________________________________________________________________________________>From Chris Watt <cnww@chebucto.ns.ca> on 30 May 2000 10:03:35To : samba@samba.org Copy To : Mike Molnar Subject : Re: Time Synchronisation At 05:46 PM 5/30/00 +1000, Mike.Molnar@sita.int wrote:>>Hi. I'm running on a Windows 98 client and an RS6000 with Samba 2.0.7 >(latest). > >I've used "net time \\ibrissde /SET /YES" to sync the times between the two >systems ... but if I save a file onto the RS6000 through Samba on a mappeddrive>the file in UNIX is 1 hour old.Almost invariably this means that one of your machines has a timezone configuration problem (and curse SMB for using local time instead of UTC). Either one of them thinks it's an hour ahead (or behind) the other or one thinks it's on daylight-savings time (some *ix OS's have a problem with this I'm told). Usually this can be solved by playing with the timezone/clock settings on one of your machines, failing that you can always override it in smb.conf, to quote the man page: time offset (G) This parameter is a setting in minutes to add to the normal GMT to local time conversion. This is useful if you are serving a lot of PCs that have incorrect daylight saving time handling. Default: time offset = 0 Example: time offset = 60 -- Who is this General Failure, and why is he reading my hard disk? Mike Molnar email: mike.molnar@sita.int work: +44 (0)20 8730-1303 cell: +44 (0)7730 415-122
> Date: Tue, 30 May 2000 18:32:01 -0300 > From: Chris Watt <cnww@chebucto.ns.ca> > To: samba@samba.org > Cc: Mike.Molnar@sita.int > Subject: Re: Time Synchronisation > Message-ID: <3.0.3.32.20000530183201.0069b384@tito> > Mime-Version: 1.0 > Content-Type: text/plain; charset="us-ascii" > > At 11:47 AM 5/30/00 +0000, Mike.Molnar@sita.int wrote: > > >When I write a file to one of the samba shares, the file save time is 1hour> >old. If I set "time offset = 60" in smb.conf, then when I do my "net > time" the > >PC time will be 1 hour ahead but the file save time will now be correct?? You haven't got daylight saving set on your PCs or Samba box have you? John Ryan
Morning, Yes to both your questions. The UNIX box is on BST and my PC has the daylight saving setting on ! Is this significant ... how would it effect samba time sync ? ________________________________________________________________________________________>From "John Ryan" <jryan@kgv.edu.hk> on 2 June 2000 23:23:43To : samba@samba.org Copy To : Mike Molnar Subject : Re: Time Synchronisation> Date: Tue, 30 May 2000 18:32:01 -0300 > From: Chris Watt <cnww@chebucto.ns.ca> > To: samba@samba.org > Cc: Mike.Molnar@sita.int > Subject: Re: Time Synchronisation > Message-ID: <3.0.3.32.20000530183201.0069b384@tito> > Mime-Version: 1.0 > Content-Type: text/plain; charset="us-ascii" > > At 11:47 AM 5/30/00 +0000, Mike.Molnar@sita.int wrote: > > >When I write a file to one of the samba shares, the file save time is 1hour> >old. If I set "time offset = 60" in smb.conf, then when I do my "net > time" the > >PC time will be 1 hour ahead but the file save time will now be correct?? You haven't got daylight saving set on your PCs or Samba box have you? John Ryan Mike Molnar email: mike.molnar@sita.int work: +44 (0)20 8730-1303 cell: +44 (0)7730 415-122
Just had another thought after I sent this. From what you said, I am assuming that the timestamp is 1 hour earlier than the real/windows time. You also said the UNIX box is set to BST. Is BST something like British Standard Time? If so, your UNIX box is the one that needs to be adjusted for daylight savings. My earlier comment of checking the output of net time may show this. Timezones on UNIX are always a bit confusing, look at the manpages about TIMEZONE. John Ryan ----- Original Message ----- From: John Ryan <jryan@kgv.edu.hk> To: <Mike.Molnar@sita.int> Cc: <samba@samba.org> Sent: Tuesday, June 06, 2000 7:18 AM Subject: Re: Time Synchronisation> I was just guessing really, because a 1 hour time difference sounds > suspiciously like the difference between std time and ds time. I'mguessing> that if you do a net time at logon and the PC has the daylight saving time > box checked, your PC will adjust one hour ahead of your samba box. Try > unchecking the box that says "automatically adjust clock for daylight > saving". > > When you do your net time, check what the time is in the logon dos box.You> may need to put a pause statement after net time > > John Ryan > > ----- Original Message ----- > From: <Mike.Molnar@sita.int> > To: John Ryan <jryan@kgv.edu.hk> > Cc: <samba@samba.org> > Sent: Monday, June 05, 2000 5:56 PM > Subject: Re: Time Synchronisation > > > > > > > > > > Morning, > > Yes to both your questions. The UNIX box is on BST and my PC has the > daylight > > saving setting on ! > > Is this significant ... how would it effect samba time sync ? > > >____________________________________________________________________________> ____________ > > > > >From "John Ryan" <jryan@kgv.edu.hk> on 2 June 2000 23:23:43 > > To : samba@samba.org > > Copy To : Mike Molnar > > Subject : Re: Time Synchronisation > > > > > > > > > Date: Tue, 30 May 2000 18:32:01 -0300 > > > From: Chris Watt <cnww@chebucto.ns.ca> > > > To: samba@samba.org > > > Cc: Mike.Molnar@sita.int > > > Subject: Re: Time Synchronisation > > > Message-ID: <3.0.3.32.20000530183201.0069b384@tito> > > > Mime-Version: 1.0 > > > Content-Type: text/plain; charset="us-ascii" > > > > > > At 11:47 AM 5/30/00 +0000, Mike.Molnar@sita.int wrote: > > > > > > >When I write a file to one of the samba shares, the file save time is1> > hour > > > >old. If I set "time offset = 60" in smb.conf, then when I do my"net> > > time" the > > > >PC time will be 1 hour ahead but the file save time will now becorrect> > ?? > > > > You haven't got daylight saving set on your PCs or Samba box have you? > > > > John Ryan > > > > > > > > Mike Molnar > > email: mike.molnar@sita.int > > work: +44 (0)20 8730-1303 > > cell: +44 (0)7730 415-122 > > > > >
The UNIX box is on British Summer Time, which is basically GMT adjusted for daylight saving time. If i look at the time on the UNIX box it is correct (7:45). If i look at the time on my PC it is correct (7:45). When i issue a "net time \\ibrissde" the time comes back 1 hour later (8:45). Which doesn't make sense to me. I've tried turning off Daylight Savings Time on the PC and then rebooted just to make sure ... same result. Thanks for the suggestions though ... it's a weird one, and i think it's either a bug or something really simple and too obvious !! :) Cheers Mike ________________________________________________________________________________________>From "John Ryan" <jryan@kgv.edu.hk> on 6 June 2000 01:08:15To : Mike Molnar Copy To : samba@samba.org Subject : Re: Time Synchronisation Just had another thought after I sent this. From what you said, I am assuming that the timestamp is 1 hour earlier than the real/windows time. You also said the UNIX box is set to BST. Is BST something like British Standard Time? If so, your UNIX box is the one that needs to be adjusted for daylight savings. My earlier comment of checking the output of net time may show this. Timezones on UNIX are always a bit confusing, look at the manpages about TIMEZONE. John Ryan ----- Original Message ----- From: John Ryan <jryan@kgv.edu.hk> To: <Mike.Molnar@sita.int> Cc: <samba@samba.org> Sent: Tuesday, June 06, 2000 7:18 AM Subject: Re: Time Synchronisation> I was just guessing really, because a 1 hour time difference sounds > suspiciously like the difference between std time and ds time. I'mguessing> that if you do a net time at logon and the PC has the daylight saving time > box checked, your PC will adjust one hour ahead of your samba box. Try > unchecking the box that says "automatically adjust clock for daylight > saving". > > When you do your net time, check what the time is in the logon dos box.You> may need to put a pause statement after net time > > John Ryan > > ----- Original Message ----- > From: <Mike.Molnar@sita.int> > To: John Ryan <jryan@kgv.edu.hk> > Cc: <samba@samba.org> > Sent: Monday, June 05, 2000 5:56 PM > Subject: Re: Time Synchronisation > > > > > > > > > > Morning, > > Yes to both your questions. The UNIX box is on BST and my PC has the > daylight > > saving setting on ! > > Is this significant ... how would it effect samba time sync ? > > >____________________________________________________________________________> ____________ > > > > >From "John Ryan" <jryan@kgv.edu.hk> on 2 June 2000 23:23:43 > > To : samba@samba.org > > Copy To : Mike Molnar > > Subject : Re: Time Synchronisation > > > > > > > > > Date: Tue, 30 May 2000 18:32:01 -0300 > > > From: Chris Watt <cnww@chebucto.ns.ca> > > > To: samba@samba.org > > > Cc: Mike.Molnar@sita.int > > > Subject: Re: Time Synchronisation > > > Message-ID: <3.0.3.32.20000530183201.0069b384@tito> > > > Mime-Version: 1.0 > > > Content-Type: text/plain; charset="us-ascii" > > > > > > At 11:47 AM 5/30/00 +0000, Mike.Molnar@sita.int wrote: > > > > > > >When I write a file to one of the samba shares, the file save time is1> > hour > > > >old. If I set "time offset = 60" in smb.conf, then when I do my"net> > > time" the > > > >PC time will be 1 hour ahead but the file save time will now becorrect> > ?? > > > > You haven't got daylight saving set on your PCs or Samba box have you? > > > > John Ryan > > > > > > > > Mike Molnar > > email: mike.molnar@sita.int > > work: +44 (0)20 8730-1303 > > cell: +44 (0)7730 415-122 > > > > >Mike Molnar email: mike.molnar@sita.int work: +44 (0)20 8730-1303 cell: +44 (0)7730 415-122