Make time correct at OpenWrt #345
EkkoG
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Because golang use local zoneinfo file to identify the timezone12 and relate package is not install by default at OpenWrt, so if you want the log time correct at OpenWrt, you should install the zoneinfo package
Choose one based on you location to install with opkg
Or install all of the zoneinfo packages
Then run
/etc/init.d/system restart
to make changes take effect.Then restart your service, dae or daed.
So, #328 is no needed, the final reason is the lack of zoneinfo package.
Footnotes
https://github.com/golang/go/blob/40cdf69fc9279ab28f84a6e0f965de8382c578fe/src/time/zoneinfo_unix.go#L29 ↩
https://stackoverflow.com/questions/54035376/why-running-golangs-time-now-at-openwrt-always-get-utc-time ↩
Beta Was this translation helpful? Give feedback.
All reactions