Re: Time Differences

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---------- Original Message -----------
From: Cameron Simpson <cs@xxxxxxxxxx>
To: General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>
Sent: Thu, 21 Jun 2007 17:44:40 +1000
Subject: Re: Time Differences

> On 20Jun2007 14:22, Glenn <glenn@xxxxxxxxxxxxxx> wrote:
> | I'm trying to figure out why different applications display 
> different times | on my fully-patched RHEL 4 server.  Assume the 
> time at the console is 10:00.  | If I log in remotely using PuTTy, 
> the date command shows the time is 10:00.  | If I create a text file,
>  it also shows it was created at 10:00.  If I connect | via FTP 
> using the same user name and list the text file, the creation time | 
> shows 15:00.  In fact, all the file times are five hours later in 
> the FTP | window than they are in the PuTTy window.  There is 
> another application, a | print server, that shows all times an hour 
> different from the console time.  | Any idea why the differences, or 
> how to fix them?  Thanks.   -Glenn.
> 
> Your FTP server is not running in your personal default local time.
> 
> The underlying system (kernel and on-disc filesystem structures) record
> time in seconds since midnight 01jan1970 GMT, and the default time
> rendering converts to your local timezone for display purposes.
> 
> This is controlled by an envionment variable $TZ on a per-process 
> basis, and otherwise by a system file with a default is $TZ is not specially
> set.
> 
> Probably the login process sets $TZ for you and the system default is
> not set up.
> 
> Try running the system-config-time command from a root shell.
> -- 
> Cameron Simpson <cs@xxxxxxxxxx> DoD#743
> http://www.cskk.ezoshosting.com/cs/
> 
> So the master hit the novice upside the head with the back of his hand.
> "Why did you do that!?"  "I do not want to have to learn another editor."
> And the student was enlightened.        - Larry Colen <lrc@xxxxxxxxxx>
> 
> 
Thanks for the ideas!  I had already configured the system time, and it turns 
out that the print server problem affected only one user, indicating a 
problem with the time on the user's PC.  This narrowed it down to the FTP 
server, and I discovered that vsftpd defaults to GMT.  I corrected this by 
adding "use_localtim=YES" at the bottom of the config 
file, /etc/vsftpd/vsftpd.conf , and restarting vsftpd.  Thanks again.   -G.

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux