FTP file timestamp

simonchs

Verified User
Joined
Feb 19, 2006
Messages
11
the file timestamp in FTP view is GMT+0, but my location is GMT+8, and my server already set the correct timezone.

i had tried to add "TimesGMT off" in proftpd.conf, but the timestamp in FTP view still incorrect.

may I know how to correct this?
 
Are the times correct when you're logged into the shell?

What OS Distribution are you using?

Jeff
 
Same problem here.
Servertime is right, but the timestamp FTP is giving is -2H
 
With some help of a fellow admin we found out that if you connect from a GMT machine like my windows machine to the centos 4.2 proftpd it gives me

06/Jun/2006:07:55:51 +0000]

However if i connect from another centos machine to this machine i get ( CEST )

[06/Jun/2006:10:08:26 +0200]

i have edited
/etc/proftpd.conf
TimesGMT on

and
/usr/local/directadmin/data/templates/proftpd.conf
TimesGMT on

And restarted it but still the same.

Will try to find out more maybe anyone got more ideas.

The strange thing is that the ntpd connects to dutch pools will try to get it on GMT
 
I have found the temporary solution for this issue.
Set the "TZ" environment vairable (for my location: export TZ="Asia/Hong_Kong"), and then restart the proftpd. The FTP file timestamp will be correct.

(With the "TimesGMT off" option in proftpd.conf)
 
transix said:
With some help of a fellow admin we found out that if you connect from a GMT machine like my windows machine to the centos 4.2 proftpd it gives me

06/Jun/2006:07:55:51 +0000]

However if i connect from another centos machine to this machine i get ( CEST )

[06/Jun/2006:10:08:26 +0200]
What do you expect to see? I'm confused.

Jeff
 
hi,

TIMESGMT OFF FOR PROFTPD NOT WORKING ON CENTOS OR WHAT ??


cause i have the same problem.. but just with centos,

with redhat9 its work fine but i not able to put timesGMT off on centos...

not normal

any clue ?
 
Hi Guys,

I found the solution, tried it and it worked! See below...


1. In file /etc/init.d/proftpd (init file), add the line

export TZ=":/etc/localtime"

before the line "# Source function library."


2. In file /etc/proftpd.conf, add the line

TimesGMT off

to the top of the file.


3. Restart proftpd with command "service proftpd restart".


This should work fine under CentOS, I'm using this as well. Good luck!

Anthony.
 
Funny how I was going over my ftp logs due to an issue... it seems the server time is correct, the time on the files is correct, but the time in the ftp logs is off....

Not sure why all the times but the logs would be wrong?

Is this related to above maybe?
 
Back
Top