Set timezone for Docker container

Found a solution. Add this to your app.yml:

run:
  # set timezone "Europe/Paris"
  # systemd: timedatectl set-timezone 'Europe/Paris'  
  - exec: ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime   
  - exec: dpkg-reconfigure --frontend noninteractive tzdata

Maybe this helps someone.

6 Likes