simple-monerod-docker icon indicating copy to clipboard operation
simple-monerod-docker copied to clipboard

Timezone cannot be set correctly

Open mondsen opened this issue 2 years ago • 5 comments

I am trying to set the timezone for the log outputs of monerod correctly but it is not working. Mapping /etc/localtime via a volume does not work and you have not added the TZ package in your dockerfile. Maybe you can add "RUN apk add --no-cache tzdata" so that we can set something like ENV TZ=Europe/Copenhagen?

mondsen avatar Dec 22 '22 13:12 mondsen

Added tzdata via https://github.com/sethforprivacy/simple-monerod-docker/commit/9afb003ba707582383cd7441eedd3c1b23d164ef

sethforprivacy avatar Dec 22 '22 14:12 sethforprivacy

@mondsen please test and report back once the new image is finished building and has been pushed:

https://github.com/sethforprivacy/simple-monerod-docker/actions/runs/3758381820/jobs/6386659088

sethforprivacy avatar Dec 22 '22 14:12 sethforprivacy

I just tested the new image but the TZ can not be changed. I have not found a definite answer yet but maybe after adding the package tzdata it is also mandatory to define a default ENV in the Dockerfile to be able to overwrite it?

mondsen avatar Dec 22 '22 16:12 mondsen

@sethforprivacy Hi again, can you try and set e.g. ENV TZ=Europe/Copenhagen to the Dockerfile? I hope this way I am able to overwrite it with my local variable.

mondsen avatar Jan 03 '23 09:01 mondsen

@mondsen will do some testing on this as I have time.

sethforprivacy avatar Jan 05 '23 14:01 sethforprivacy