Hi guys,
I've installed rsyslog on my TL-WDR3600 with a root overlay, but the logging timestamp is in UTC for some odd reason.
I wonder if the missing tzdata package is the culprit.
The rsyslog is from the default openwrt repository for version OpenWrt 19.07.2 r10947-65030d81f3 / LuCI openwrt-19.07 branch git-20.094.46635-de52000
@kisisten Did installing the appropriate zoneinfo-<region> package fix the problem for you? I am running into the exact same issue and I have zoneinfo-asia package installed.
So another observation is, some components log in the right time zone, whereas other's don't. The log messages from kernel, dnsmasq etc are good, but other messages get logged in UTC.
Apr 18 15:29:50 bumblebee kernel: [ 13.640878] br-lan: port 1(eth0) entered blocking state
Apr 18 15:29:50 bumblebee kernel: [ 13.646617] br-lan: port 1(eth0) entered forwarding state
Apr 18 09:59:50 bumblebee netifd: Network device 'eth0' link is up
Apr 18 15:29:50 bumblebee kernel: [ 13.661240] igb 0000:04:00.0 eth3: igb: eth3 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
Apr 18 09:59:50 bumblebee netifd: Network device 'eth3' link is up
Apr 18 09:59:50 bumblebee netifd: Interface 'wan_cpe' has link connectivity
Apr 18 15:29:50 bumblebee kernel: [ 13.920805] IPv6: ADDRCONF(NETDEV_CHANGE): eth3: link becomes ready
Apr 18 15:29:50 bumblebee kernel: [ 13.929021] IPv6: ADDRCONF(NETDEV_CHANGE): eth3.702: link becomes ready
Apr 18 15:29:50 bumblebee kernel: [ 13.936469] IPv6: ADDRCONF(NETDEV_CHANGE): eth3.1830: link becomes ready
Apr 18 09:59:50 bumblebee netifd: VLAN 'eth3.702' link is up
Apr 18 09:59:50 bumblebee netifd: Interface 'wan' has link connectivity
Apr 18 09:59:50 bumblebee netifd: Interface 'wan' is setting up now
Apr 18 09:59:50 bumblebee netifd: VLAN 'eth3.1830' link is up
Apr 18 09:59:50 bumblebee netifd: Interface 'wan_voip' has link connectivity
root@bumblebee:~# date
Sat Apr 18 15:37:58 IST 2020
root@bumblebee:~#
root@bumblebee:~# logger test message
root@bumblebee:~# logread | grep 'test message'
Apr 18 10:05:38 bumblebee root: test message
Apr 18 10:08:59 bumblebee root: test message
root@bumblebee:~# date
Sat Apr 18 15:39:06 IST 2020
root@bumblebee:~#
I wonder if its logger not sending the message with the right time zone?
EDIT
Looks like this is an issue with the busybox logger utility. I installed the logger separately by running, and now logs are in the right time zone,