delfer / docker-alpine-ftp-server

Small and flexible docker image with vsftpd server
189 stars 130 forks source link

How to set local timezome? #33

Closed Ingo-L closed 2 years ago

Ingo-L commented 2 years ago

Do anybody know to set the timezone for the ftp server? I have a time shift with all my clients of 1 hour. I think the server uses UTC. I’d tried with TZ=Europe/Berlin, but not working. Thank you

aminvakil commented 2 years ago

Have you tried mounting /etc/timezone and /etc/localtime?

Something like this:

volumes:
  - "/etc/timezone:/etc/timezone:ro"
  - "/etc/localtime:/etc/localtime:ro"
Ingo-L commented 2 years ago

Thank you,

i linked

and additional i linked

I made a copy of vsftpd.conf to /yourpath/vsftpd and added the entry in the file vsftpd.conf

use_localtime=YES

that works for me :)