Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

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

@superzjg

Description

@superzjg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions