Closed sokulski closed 3 years ago
Are you referring to this?
If so, this comes from the OS...
Yep, that's exactly where I'm looking.
Do you mean that it comes from the host OS? Or the OS inside the container?
Honestly not sure as I run on bare metal, not containered... maybe @ellnic has a thought here?
Good point.
By default, the time zone inside the container should be UTC. I never really thought too much about it tbh, but you've highlighted something that can be improved.
I will need to modify the build files so that the 'TZ' variable can be passed.
I am out most of today, but I will do it tomorrow or Friday. :-)
That's awesome. Thanks to you both for your super fast responses with these images.
Let me know if you need the need environment variable tested.
@sokulski Sorry I'm running a bit behind. I haven't forgotten. New aim is by end of weekend. I'll edit my container first and let you know when it's ready to test.
@sokulski What is your preferred architecture?
I’m running Watcher on a 32-but ARM board. ODROID HC2z
On Nov 28, 2020, at 8:58 AM, ellnic notifications@github.com wrote:
@sokulski What is your preferred architecture?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Ok great. So you'll be using armhf
I am just waiting in the queue for the builds to start, but once finished can you please pull ellnic/watcher3:armhf
and test a new config with the env variable TZ
so for example:
docker pull ellnic/watcher3:armhf
then:
docker run -d \
--name=watcher3-tztest \
-v /path/to/DIFFERENT_TEST_CONFIG/:/config \
-e UMASK_SET=022 \
-e APP_UID=1000 -e APP_GID=1000 \
-e TZ="Europe/London" \
-p 9090:9090 \
ellnic/watcher3:armhf
Where Europe/London
is, obviously your timezone as set by the tz database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
and then look at the system info and tell me if that's done it :)
I'll edit this when the build has completed.
Edit: right so it still hasn't built and I need to hit the hay. You can check my docker in a bit and try it or I can post in the morning after checking. Looks like the free community tier has been massively de-prioritised since the start of November 😔 it 'should' be done soon, but it's been pending for over an hour and I've never had to wait more than 30 mins.
Edit2: It was 2 hours in the queue (!) but is completed now. Try and see what happens. :-)
I just set to Europe/Kiev
and I see this:
America/New_York
gives:
Test whatever zone you need and give me a thumbs up and I'll PR it :)
I see user Settings > System that the default time zone is +0. Is it possible to configure that, either as an environment variable or in the UI?