proftpd log time and date mixed up

On my Etch servers, proftpd's logs in /var/log/proftpd/ are all mixed up. Just logging in, transferring a file, logging out, each action or series of actions were often being logged with mixed dates and times, never in order, and always wrong.

Turns out by default proftp is logging times in GMT or somesuch, I guess based on the client's system? To force proftpd to log by the server's local time, add these two lines to /etc/proftpd/proftpd.conf

TimesGMT off
SetEnv TZ :/etc/localtime

/etc/init.d/proftpd restart

Should be all good now.

This site is archived. mig5 is taking a break from writing.