Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp time stamp mismatch

Status
Not open for further replies.

jgtyler

MIS
Dec 16, 2002
13
US
When we ftp to a linux box from a HP-UX box and perform a "dir" of a file it shows a time stamp of 13:59 but when a ls -l is performed on the linux box the time stamp is 8:59. The correct time stamp is 8:59, why does ftp dir show a 5 hour increase?
 
Hi,

I think this must be due to different time zone settings, e.g. one machine has GMT, the other has GMT-5.
'date -u' should give you a hint.
HP-UX has a system variable $TZ, but I don't know of a Linux equivalent.

hope this helps
 
A "date -u" shows both with the same date and time.
 
It seems then that my idea was not the right one, sorry.
For further investigation:
What happens if you try ftp from Linux to HP-UX? Is there a time mismatch too?

regards
 
It doesn't matter which way or what server I try to ftp to, when you execute a 'dir' from within ftp you get the UTC time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top