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

[Feature] Use Java environment to build a website. The time zone in the container is sometimes GMT and sometimes GMT+8. I hope you can customize the time zone to select the correct time #7820

Open
duxdyu opened this issue Feb 8, 2025 · 2 comments

Comments

@duxdyu
Copy link

duxdyu commented Feb 8, 2025

1Panel Version

v1.10.23-lts

Please describe your needs or suggestions for improvements

我部署了两台1panel,各有一个网站,都是bitnami/java:1.8镜像,2024-09-10 04:04:01的,一台在阿里云上,这台部署几个月了,时区是Etc/UTC,但是日志输出的时间是正确的。今天在本地服务器上部署了一台,时区也是Etc/UTC,但是日志输出的时间是错的。没太搞明白是什么原理,自己进容器切换的时区解决了。希望可以创建环境的时候自己选择时区。

Please describe the solution you suggest

创建环境的时候加一个选择时区的功能

Additional Information

No response

@wanghe-fit2cloud wanghe-fit2cloud changed the title [Feature] 用java环境建网站,容器内的时区有时候是GMT有时候是GMT+8,希望可以自定义时区选择正确时间 [Feature] Use Java environment to build a website. The time zone in the container is sometimes GMT and sometimes GMT+8. I hope you can customize the time zone to select the correct time Feb 8, 2025
@zhengkunwang223
Copy link
Member

我们会在 v2 版本增加环境变量和挂载目录的配置 到时候可以把本地时区挂载到容器中

@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


We will add environment variables and mount directory configurations to v2 version. At that time, we can mount the local time zone to the container.

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

No branches or pull requests

3 participants