Support / KnowledgeBase

 
Search the KnowledgeBase Search

(dv) Timezone issues with FTP defaulting to Global Time (GMT)

  • Applies to: All (dv)

  • Difficulty: Easy

  • Time needed: 10 minutes

  • Tools needed: root, ssh, vi knowledge

 
  • Applies to: All (dv)
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: SSH, root, vi knowledge

Requirements

Before you start, please have these handy:

Note: The authoritative source for this information can be found at the following link:
http://proftpd.org/docs/directives/linked/config_ref_TimesGMT.html
 

Symptoms

  • Time Zone is set correctly in Linux, but FTP reports incorrect timestamps. Closer inspection reveals that the FTP timestamps are set to GMT instead of following the correctly set timezone.

Solution

Open up /etc/proftpd.conf with vi to edit it

vi /etc/proftpd.conf

Navigate to this section

<Global>
DefaultRoot     ~  psacln
AllowOverwrite     on
</Global>

Next, add 'TimesGMT off' to the last line before </Global>, like so:

<Global>
DefaultRoot     ~  psacln
AllowOverwrite     on
TimesGMT           off
</Global>

Finally, restart xinetd:

/etc/init.d/xinetd restart

User Comments

No visitor comments posted. Post a comment
Fields marked with an asterisk(*) are required. Comment on this article
Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue