GithubHelp home page GithubHelp logo

Comments (4)

phroggster avatar phroggster commented on June 19, 2024 3

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.

jacobalberty avatar jacobalberty commented on June 19, 2024

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.

jbehrends avatar jbehrends commented on June 19, 2024

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.

github-actions avatar github-actions commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.