Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time zone within the container #250

Open
Ernst2020 opened this issue Sep 10, 2024 · 4 comments
Open

Time zone within the container #250

Ernst2020 opened this issue Sep 10, 2024 · 4 comments

Comments

@Ernst2020
Copy link
Sponsor

I noticed that the container uses UTC and for me is in an incorrect timezone. As a result times in the probes log are two hours off.

There is no file TZ in /etc.

Can I adjust the timezone by creating a TZ file or would that screw up the measurement data reported by the probe?

@jimaek
Copy link
Member

jimaek commented Sep 10, 2024

That's a good question. Do we rely on the time/data of the probes in any way? @MartinKolarik @alexey-yarmosh
I believe no, so it should be safe for a user to overwrite it, right?

@alexey-yarmosh
Copy link
Member

There are no direct usages of probe's date. So it should be ok to update the timezone. I'll check that on my probe and get back here.

@Ernst2020
Copy link
Sponsor Author

Ah, it is not so easy to change the timezone, tzselect is present within the container but its result needs to be added to /root/.profile, but no editor is present. And ofcourse to make it permanent the docker image itself needs to be changed and saved.

Perhaps it is an idea for a future update to the container to automatically adjust the timezone from the geolocation data when the container starts?

@alexey-yarmosh
Copy link
Member

Sources of timezone data might be different, but generally it is a good idea to adjust time to the user's one in the probe logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants