1Panel icon indicating copy to clipboard operation
1Panel copied to clipboard

[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

Open duxdyu opened this issue 9 months ago • 2 comments
trafficstars

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

duxdyu avatar Feb 08 '25 02:02 duxdyu

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

zhengkunwang223 avatar Feb 08 '25 07:02 zhengkunwang223

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.

wanghe-fit2cloud avatar Feb 08 '25 07:02 wanghe-fit2cloud

v2.0.0 版本已发布。

wanghe-fit2cloud avatar Jun 12 '25 05:06 wanghe-fit2cloud