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

关于 TIMEZONE #6

Closed
cherinyy opened this issue Dec 11, 2021 · 2 comments
Closed

关于 TIMEZONE #6

cherinyy opened this issue Dec 11, 2021 · 2 comments

Comments

@cherinyy
Copy link

ENV TIMEZONE=""

Debian 容器自带了一个 TZ 变量,用于修改系统时区,建议统一使用 TZ 作为变量名。

@joyqi
Copy link
Member

joyqi commented Dec 24, 2021

TIMEZONE不仅用于修改系统时区,还用于修改PHP的时区,同时我们还需要同时兼容debian和alpine两种环境,后者并没有使用TZ环境变量

@joyqi joyqi closed this as completed Dec 24, 2021
@cherinyy
Copy link
Author

TIMEZONE不仅用于修改系统时区,还用于修改PHP的时区,同时我们还需要同时兼容debian和alpine两种环境,后者并没有使用TZ环境变量

Alpine Linux 有使用 TZ 变量,仅需安装 tzdata 即可使用。

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

2 participants