softcenterarmng icon indicating copy to clipboard operation
softcenterarmng copied to clipboard

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

Open superzjg opened this issue 5 months ago • 1 comments

大佬好,发现几个基于 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/ 解决这个问题?

superzjg avatar Sep 08 '24 13:09 superzjg