ProFTPD shows incorrect GMT time with Plesk

A really really strange issue randomly appears with ProFTPD and Plesk occasionally. On the filesystem, a file will have a correct creation/modification date, but then when you view it over FTP, it's always off by the amount of hours you differ from GMT.

For example, if the server is on Central Time, all of the files will seem to be created 6 hours after they were really created. The filesystem will show something like 10AM, but the FTP client will say 4PM. Luckily, there is a fix!

Add the following to your /etc/proftpd.conf file and you should be good to go:

TimesGMT off
SetEnv TZ :/etc/localtime

Printed from: http://rackerhacker.com/2007/02/21/gmt-ftp-timestamps-in-plesk/ .
© Major Hayden 2012.

3 Comments   »

  • Daniel says:

    Great, I set this on my proftpd.conf and now its fine, with correct times.

    Was really annoying to see +3 hours on uploaded files info

    Thanks

  • Ron says:

    Blast from the past! Still works.

    Thanks!

  • I am trying this trick but the problem now is that, the actual PROFTP doesn't start as a services when a machine boot up.

    I am having a same problem. FTP time is 2hrs behind

Trackbacks/Pingbacks

  1. Heartshare » Blog Archive » ProFTPD shows incorrect GMT time

RSS feed for comments on this post

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden