LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02: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, 03:03 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Which time zones does the server use? Try
date +%Z
Is it GMT?
 
Old 10-20-2006, 10: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 10:43 AM.
 
Old 10-20-2006, 02:52 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Yes, it does.
Code:
use_localtime=YES
added to vsftpd.conf should help (after restarting vsftpd)
 
Old 10-21-2006, 09: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, 11:44 AM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

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


Reply

Tags
stamp, time



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 05:01 PM
Time stamp Kalyani1 Linux - Software 0 11-07-2005 02:58 PM
How to keep the original time of files uploaded to FTP server wondial Linux - Software 1 10-26-2004 10:12 PM
Time stamp in Samba is 11 hours behind time stamp in Linux Linh Linux - General 3 09-04-2003 12:44 PM
Remove files by time stamp evione Linux - Newbie 1 07-15-2003 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:10 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