Start a MYSQL DB using Europe/Madrid as the timezone
docker run --name mysql-container -e MYSQL_ROOT_PASSWORD=password -p 3306:3306 -e TZ=Europe/Madrid -d mysql:latest mysql
In Kestra configuration, set webserver and worker TZ to Europe/Madrid, e.g.
kestra:
image: registry.kestra.io/docker/kestra-ee:v0.15.17-full
pull_policy: always
# Note that this is meant for development only. Refer to the documentation for production deployments of Kestra which runs without a root user.
user: "root"
command: server standalone --worker-thread=128
volumes:
- kestra-ee-data:/app/storage
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/kestra-wd:/tmp/kestra-wd
env_file:
- .env
environment:
TZ: Europe/Madrid
...
Describe the issue
Issue reported by user using MYSQL query task.
docker run --name mysql-container -e MYSQL_ROOT_PASSWORD=password -p 3306:3306 -e TZ=Europe/Madrid -d mysql:latest mysql
Notice that the timestamp returned is incorrect, and is consistently 2 hours behind current time in Madrid.
This appears to have been fixed in versions 0.17 onwards
Environment