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

基于 go 编写的插件,比如 ddns-go 等,时区不对的问题 #39

Open
superzjg opened this issue Sep 8, 2024 · 1 comment

Comments

@superzjg
Copy link
Contributor

superzjg commented Sep 8, 2024

大佬好,发现几个基于 go'lang 的程序,比如 ddns-go,frp,filebrowser等,运行时观察输出日志,他们的时间与路由器相差8小时,通过在脚本中 设置时区环境变量也不行(但在ssh前台执行时,时间是正常的,通过插件脚本就不正常)。

曾在 openwrt 中遇到过,只要补全 /usr/share/zoneinfo/Asia/Shanghai 这个时区文件,重启,即可正常。

但在 SWRT 固件中,时区文件保存在 /rom/usr/share/zoneinfo/Asia/Shanghai 中,是不是可以在固件打包前,在 /usr/share/ 下建立一个zoneinfo的 软链接 指向 /rom/usr/share/zoneinfo/ 解决这个问题?

@paldier
Copy link
Member

paldier commented Sep 9, 2024

在考虑加

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