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

Research direction

Start by inspecting docker-compose-custom.yml and the ee-cron-scheduler service configuration to see how the cron/ofelia container is defined. Compare its timezone-related settings with the PHP service example, then verify that scheduled jobs use the configured Australia/Melbourne timezone instead of UTC.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops, infrastructure
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.