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

Make the environment variable TZ effective in Docker and default to using the UTC timezone. #628

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KUMAKAIHA
Copy link

I modified the Dockerfile to include setting the TZ variable, with the default UTC timezone. I also edited telemetry_db.php to add a timestamp for timezone configuration. Additionally, PHP now defaults to using UTC as the timezone when no TZ variable is passed.
I compiled a test Docker on my Mac, and everything runs fine on my Mac. However, the version compiled on Mac is for arm64, but I believe it shouldn't have a big impact on the amd64 version. I only tried adding the timezone as Shanghai and got the correct timezone on the query page. I hope to get more tests to ensure the stability of the project.

@KUMAKAIHA KUMAKAIHA changed the title 使环境变量TZ在Docker中有效,并默认使用UTC时区 Make the environment variable TZ effective in Docker and default to using the UTC timezone. May 25, 2024
@sstidl sstidl added the Docker label Jul 31, 2024
@sstidl sstidl changed the base branch from update-build-pipeline to master July 31, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants