LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-19-2006, 03:30 PM   #1
Helfrick
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Rep: Reputation: 0
Time stamp on uploaded files incorrect.


Files received on our FTP site running on Red Hat 9 have the wrong time stamp. They seem to be 4 hours ahead of of EDT, like they may be GMT. How can I get our time (EDT) on the files when they arrive?

Thankx,
John
 
Old 10-19-2006, 04:03 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,540

Rep: Reputation: 149Reputation: 149
Which time zones does the server use? Try
date +%Z
Is it GMT?
 
Old 10-20-2006, 11:42 AM   #3
Helfrick
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Mara
Which time zones does the server use? Try
date +%Z
Is it GMT?

The time zone is set to Eastern USA, Daylight savings time. (EDT) The system clock gets it's time from an outside time server. The uploaded files show the correct upload time when viewed at the server, but when viewed from ANY FTP client they are 4 hours ahead. Even though the east coast is -5 from GMT, in Daylight Savings it must be -4.

Could it be possible vsftp (sp) could be using GMT when serving up the files??

Thankx,
John

Last edited by Helfrick; 10-20-2006 at 11:43 AM.
 
Old 10-20-2006, 03:52 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,540

Rep: Reputation: 149Reputation: 149
Yes, it does.
Code:
use_localtime=YES
added to vsftpd.conf should help (after restarting vsftpd)
 
Old 10-21-2006, 10:07 AM   #5
Helfrick
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Talking Time stamp

Quote:
Originally Posted by Mara
Yes, it does.
Code:
use_localtime=YES
added to vsftpd.conf should help (after restarting vsftpd)

I don't have the correct font, but Dziekuje. Should I make it to Poland I'll buy you a Piwo.

Thankx.
John
 
Old 10-22-2006, 12:44 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,540

Rep: Reputation: 149Reputation: 149
I understand that it works
 
  


Reply

Tags
stamp, time


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Incorrect time stamp on uploaded files atif-1 Linux - General 1 12-21-2005 06:01 PM
Time stamp Kalyani1 Linux - Software 0 11-07-2005 03:58 PM
How to keep the original time of files uploaded to FTP server wondial Linux - Software 1 10-26-2004 11:12 PM
Time stamp in Samba is 11 hours behind time stamp in Linux Linh Linux - General 3 09-04-2003 01:44 PM
Remove files by time stamp evione Linux - Newbie 1 07-15-2003 10:35 AM


All times are GMT -5. The time now is 12:25 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration