jshridha / docker-blueiris

Blueiris in a docker using wine!
Apache License 2.0
105 stars 53 forks source link

Setting Time #6

Closed dinki closed 4 years ago

dinki commented 5 years ago

I cannot for the life of me figure out how to set time on this container.

I've tried passing TZ=America/Chicago as an environment variable when running the container.

I've tried linking /etc/timezone to /usr/share/zoneinfo/America/Chicago .

The date appears to be correct if I do an exec bash on the container but despite all this, my timestamps show up as UTC.

Can someone tell me how to set time? Thanks

dinki commented 5 years ago

Still banging my head on this. Can someone PLEASE offer some insight on getting this set?

dinki commented 5 years ago

Hey guys!!! Back again! Time appears to work GREAT in UI3 but not in the timestamps on the overlay. Can someone confirm that this is working for them? Otherwise I create an issue (for what it's worth).

jshridha commented 4 years ago

Try linking like this:

-v /etc/localtime:/etc/localtime:ro

calvinbui commented 4 years ago

Try linking like this:

-v /etc/localtime:/etc/localtime:ro

Still shows as UTC for me within the application

jshridha commented 4 years ago

@calvinbui What host OS are you using and what timezone is it set to?

calvinbui commented 4 years ago

i must've done something wrong the first time as it's working now.

Viksie commented 4 years ago

Can anyone provide any clarity on this issue ?

I've removed the symlink /etc/localtime. Passed -v /etc/localtime:/etc/localtime:ro in the compose file. Added and removed locales. Updated all components. Now even rebuild the container.

The container's local time is reflecting the timezone correctly, yet BlueIris v5 simply remains fixated on UTC+0, be it in the overlay, UI3 or VNC session.