Comments (4)
The time stamps reported in the web interface are controlled appropriately from the web interface (and are set from the browser time zone during initial setup). Unfortunately, the initial setup wizard only seems to take the browser's reported UTC offset into account, then attempts to map that to a time zone, which can result in an inaccurate pre-selected default. You're just going to have to select the correct time zone during initial setup, adjust it during runtime, or file a bug with Ubiquiti to inform them that the default isn't accurate in certain conditions.
However, the time stamps reported in the container logs are seemingly locked to UTC regardless of any other setting. Adding an apt-get install tzdata
to the image build process yields container logging timestamps that honor the TZ environment variable appropriately. Bind-mounting /etc/timezone
and /etc/localtime
seemingly works on a Debian-based host, but it isn't portable. Adding additional processing to docker-entrypoint.sh
to dump the TZ environment var into /etc/timezone
and parse & relink /etc/localtime
is another possibility, but it's way easier to just install tzdata
in the image and let it convert the time stamps automatically based on TZ.
from unifi-docker.
I cant find any way to influence the wizard's defaults. I suspect (haven't been able to confirm or deny though) that it is getting that data from your web browser and not from the server environment.
from unifi-docker.
Not sure if this is the same issue or not.. but I found that the timezone in the container (5.8.30) appeared to be UTC and passing the TZ variable did nothing to fix/change that. My fix was to mount in the host system's (in my cause Ubuntu) timezone/localtime files when running the container.
Example docker run options:
-v /etc/timezone:/etc/timezone:ro \
-v /etc/localtime:/etc/localtime:ro \
from unifi-docker.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
from unifi-docker.
Related Issues (20)
- Include info about docker pull if docker run does not update HOT 2
- 7.5.174 (current "latest" docker release) has been pushed back. 7.5.176 is available HOT 1
- Not able to open guest portal HOT 2
- What is the plan for 7.5.176? HOT 14
- Please upgrade the beta image HOT 5
- Update to 7.5.187 HOT 18
- 'no matching manifest for linux/arm/v8' when upgrading from 7.4 to 7.5 HOT 2
- Illegal reflective access by org.apache.catalina.loader.WebappClassLoaderBase HOT 6
- Migrate from built-in MongoDB Server to own container HOT 4
- UniFi Network Application 8.0.7 is now out HOT 47
- 7.5.176 java memory leak? HOT 2
- No OpenVPN nor Wireguard VPN Server options HOT 7
- How to add config.gateway.json? HOT 7
- project still alive HOT 14
- UniFi Network Application 8.0.24 is now out HOT 10
- HTTP Status 404 – Not Found HOT 1
- Login Error HOT 1
- README fix typos HOT 3
- Update image to controller version v8.0.26
- How to change log container log level? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unifi-docker.