-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker image does not recognise timezone appropriately #562
Comments
Hi. Could you please precise what image you are using ? |
Here's my compose.yaml file: services:
pydio:
image: pydio/cells:latest
container_name: pydio-cells
hostname: files
domainname: example.com
ports:
- "8808:8080" # web ui
environment:
- TZ=America/Edmonton
- CELLS_INSTALL_YAML=/pydio/config/install-conf.yml
- CELLS_BIND=0.0.0.0:8080
- CELLS_SITE_BIND=0.0.0.0:8080
- CELLS_EXTERNAL=https://files.example.com
- CELLS_SITE_EXTERNAL=https://files.example.com
- CELLS_NO_TLS=1
- CELLS_LOG=info
- CELLS_LOG_LEVEL=production
- CELLS_DEFAULT_DS_STRUCT=true
volumes:
- /srv/pydio/config/install-conf.yml:/pydio/config/install-conf.yml:ro
- /srv/pydio/cells:/var/cells
- /media/storage/cells/:/var/cells/data
- /media:/media
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
pydio-db:
image: mysql:latest
container_name: pydio-db
hostname: pydio-db
domainname: example.com
command: [mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci]
ports:
- "3306:3306" # mysql
environment:
- TZ=America/Edmonton
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- /srv/pydio/mysql:/var/lib/mysql
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped Here's me trying to pull the latest image to confirm that it is up to date:
So yup, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
📝 Describe the bug
Date on host reports according to timezone. Date on cells container reports in UTC. Date on database container reports according to timezone.
⚙️ How-to Reproduce
Steps to reproduce the behavior:
🩺 Environment / Setup
Complete the following information:
Server Versions:
Client used for testing:
Additional context:
tzdata
to the alpine base image to enable timezone supportThe text was updated successfully, but these errors were encountered: