Networking Forums

Networking Forums > Computer Networking > Linux Networking > Samba timestamps wrong!

Reply
Thread Tools Display Modes

Samba timestamps wrong!

 
 
RobO
Guest
Posts: n/a

 
      08-10-2005, 11:50 AM
Hi All!

Please help.
I am having problems with timestamps across SMB shares.

Timezones and times match on both boxes (M$Win2kSrv + Gentoo).

When I copy a file across, the timestamp is an hour ahead, I have
played about with the timezones on my Gentoo box and tried most
combinations but it still stays the same.
I remounted after every timezone change.

If I rsync files across to the win2k box timestamps are all in order
without any time preservation switches so I suspect it to be a Samba
issue or a misconfiguration somewhere?

Any ideas!

Thanks,

Rob

 
Reply With Quote
 
 
 
 
Rob van der Putten
Guest
Posts: n/a

 
      08-10-2005, 12:43 PM
Hi there


RobO wrote:

> Please help.
> I am having problems with timestamps across SMB shares.
>
> Timezones and times match on both boxes (M$Win2kSrv + Gentoo).


Do a date and date -u on the Gentoo box.
Check wether the difference between local and UTC actually matches your
timezone (+0100 for BST).

> When I copy a file across, the timestamp is an hour ahead, I have
> played about with the timezones on my Gentoo box and tried most
> combinations but it still stays the same.
> I remounted after every timezone change.
>
> If I rsync files across to the win2k box timestamps are all in order
> without any time preservation switches so I suspect it to be a Samba
> issue or a misconfiguration somewhere?


Have you tried setting a time zone enviroment variable on the windows
box?
Something like TZ=BST-1


Regards,
Rob
--
+----------------------------------------------------------------------+
| Intensieve Menshouderij |
| http://www.intensievemenshouderij.nl/ |
+----------------------------------------------------------------------+
 
Reply With Quote
 
RobO
Guest
Posts: n/a

 
      08-10-2005, 02:17 PM
Rob,

Thanks for the reply!

I havent set any time zone variable on the windows box but will do.

"date -u" and "date" spit out the exact same time.
I would imagine there would be a difference as I'm based in London.
I'm not in sync with timezones, pardon the pun. :-)

Many Thanks,

Rob

 
Reply With Quote
 
Rob van der Putten
Guest
Posts: n/a

 
      08-10-2005, 02:29 PM
Hi there


RobO wrote:

> I havent set any time zone variable on the windows box but will do.


Some apps need them.
Most can do without

> "date -u" and "date" spit out the exact same time.


There should be an hour time difference between the two.
Your timezone should be europe/london.

> I would imagine there would be a difference as I'm based in London.


Summer: GMT+1
Winter: GMT

> I'm not in sync with timezones, pardon the pun. :-)


http://www.sput.nl/time.html
And install NTP, that will synchronize yout Linux box with an atomic
clock.
I also recommend setting your CMOS clock to GMT rather then local time.


Regards,
Rob
--
+----------------------------------------------------------------------+
| Intensieve Menshouderij |
| http://www.intensievemenshouderij.nl/ |
+----------------------------------------------------------------------+
 
Reply With Quote
 
RobO
Guest
Posts: n/a

 
      08-10-2005, 03:31 PM
Wonderful!

Many thanks for your help Rob!!!

I have set CMOS clock to GMT, now timestamps are correct!!!

Dank je!!!

Rob

 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      08-10-2005, 04:41 PM
"Rob van der Putten" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> And install NTP, that will synchronize yout Linux box with an atomic
> clock.


Actually, that will only synchronize with the NTP server, but that's good
enough for most folk.

 
Reply With Quote
 
RobO
Guest
Posts: n/a

 
      08-10-2005, 09:23 PM
I have NTP in place, in fact the win2k box is serving time to the
network.

My gentoo box gets its time off it too, but the timestamps were still
wrong.
Funny that it was through SMB shares and not rsync.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do all Linux distros have Samba built-in? Detect if Samba installed? Matthew Lincoln Linux Networking 8 11-17-2008 12:11 AM
Obtaining timestamps ajcppmod@gmail.com Linux Networking 1 06-03-2008 04:08 PM
CLOCK_MONOTONIC datagram timestamps by the kernel Spoon Linux Networking 0 02-24-2007 05:06 PM
Netgear Router logs emails - wrong timestamps Dave_T Home Networking 2 07-17-2006 04:06 PM
[Samba] WINS on Samba server and Routing jbob Linux Networking 0 08-13-2003 01:31 AM



1 2 3 4 5 6 7 8 9 10 11