EasyEngine / EasyEngine/cron-command

Ability to set the timezone cron/ofelia will run in

Aperta
#54 4 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
4
Fork
8
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I can't see any way to set the timezone that the cron/ofelia container is using.

For other containers, i.e. `php`, I can set this in `docker-compose-custom.yml`, i.e.

```yaml
version: '3.5'

services:

php:
environment:
- TZ=Australia/Melbourne
volumes:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
```

There should be some way to do this for the cron/ofelia container, since [this Ofelia ticket](https://github.com/mcuadros/ofelia/issues/96) suggests that it does respect `TZ` environment variable if set.

My server is in `Australia/Melbourne`, as are most of the containers - except for `ee-cron-scheduler` which appears to still be in `UTC+0`, which is lame as I'd like everything to be using the same timezone.

Hope there is a way!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.