LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-03-2003, 02:24 PM   #1
Linh
Member
 
Registered: Apr 2003
Posts: 178

Rep: Reputation: 30
Time stamp in Samba is 11 hours behind time stamp in Linux


Time stamp in Samba is 11 hours behind time stamp in Linux

on Windows 2000 workstation, the time is 12:00PM, 9-3-2003
on Linux workstation, the time is 12:00PM, 9-3-2003
using Samba Version 2.2.8a in the Linux computer

I mapped a Samba drive from a Windows 2000 workstation to a Linux
computer. Next, I created a folder named New_Folder. the date created on this
folder indicates 9/3/2003 1:00AM

When I went in to the Linux command line and looked at the New_Folder directory
using the command "ls -al", the date created indicates 9/3/2003 12:00PM

drwxrwx--- 2 admin engineer 4096 Sep 3 12:00 New_Folder
==================================

The date of when the New_Folder directory was in Samba is 11 hours earlier
than the one in the Linux computer using "ls -al" command.

9-3-2003
12:00AM
1:00 AM --> Samba time displayed
2:00 AM
3:00 AM
4:00 AM
5:00 AM
6:00 AM
7:00 AM
8:00 AM
9:00 AM
10:00 AM
11:00 AM
12:00 PM --> Linux time display

Other users also confirmed to me this bug in Samba 2.2.8a.

======================================

Is there anyway to fix this bug so that the date and time of when the
files and folders in Samba is created is the same as that showed in Linux
when use the command line "ls -al" ?

I figure that if there is a way to fix it, you would have to change
certain parameter in /etc/samba/smb.conf. If this is the case, then which one ?
 
Old 09-03-2003, 02:33 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Take a look at this variable:
time offset

For more details:
man smb.conf
 
Old 09-03-2003, 03:04 PM   #3
Linh
Member
 
Registered: Apr 2003
Posts: 178

Original Poster
Rep: Reputation: 30
Reply to David_Ross

Hi David_Ross and thank you for your help.

Both the win2K workstattion and the Linux computer time zone
are set as Central Time USA, and both are set for enable "daylight saving times"

I used the time offset = 780 in smb.conf and when I created a new file/folder in Samba, the time matched that of the Linux computer. 780 is 780 minutes.
780 / 60 = 13 hours

I have to offset Samba by 13 hours so that the Samba time would be the same as that in Linux. The fact is the Samba time is only 11 hours earlier than Linux. Any ideas why I have to offset it by 13 hours to get it to offset by 11 hours ?
 
Old 09-04-2003, 12:44 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It could be that your harware clock is set to a different time but I'm not sure.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Time stamp Kalyani1 Linux - Software 0 11-07-2005 02:58 PM
set up the Time stamp Kalyani1 Linux - Software 3 11-06-2005 02:36 PM
time stamp for file modification youngstorm Linux - Newbie 2 11-01-2005 03:46 PM
search based on time stamp ? massai Linux - Newbie 1 03-07-2004 02:50 PM
Remove files by time stamp evione Linux - Newbie 1 07-15-2003 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration