openfaas / cron-connector

Invoke functions on a schedule.
MIT License
39 stars 10 forks source link

[FEATURE REQUEST] Add timezone support #17

Open ionutz89 opened 3 years ago

ionutz89 commented 3 years ago

It will be great if we can set the timezone as a variable on ENV for this image when you start it.

At the moment, I am using hostpath mount to get the right timezone.

Use case: in London, we have BST timezone.

ionutz89 commented 3 years ago

I guess you can add on this line https://github.com/openfaas/cron-connector/blob/63646e5f5c917160ea4185d17dcdfeca2511169d/Dockerfile#L39 tzdata since it is an alpine image 🤔