You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
is it possible to change the timezone of the cron container? #61
I know this issue is a year old, but maybe someone has the same problem. To change the timezone of the container, you have also to install tzdata inside the container.
So your custom Dockerfile would be something like this:
FROM willfarrell/crontab
RUN apk add --no-cache tzdata
Then you can set the timezone via the TZ environment variable.
@willfarrell maybe it would be useful to install tzdata by default as timezone issues could be common when it comes to specific cron times
Activity
Snck3rs commentedon Dec 11, 2024
I know this issue is a year old, but maybe someone has the same problem. To change the timezone of the container, you have also to install
tzdatainside the container.So your custom Dockerfile would be something like this:
Then you can set the timezone via the
TZenvironment variable.@willfarrell maybe it would be useful to install
tzdataby default as timezone issues could be common when it comes to specific cron times