EasyEngine / EasyEngine/cron-command

Ability to set the timezone cron/ofelia will run in

Open
#54 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
4
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.