OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version openwrt-21.02
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by flygarn12 - 20.07.2021

FS#3944 - Octegon can't read timezone

EdgeRouter-4 21.02-snapshot-r16232-febf6db0d0 (and other Octegon devices as seen it the forum thread).

I can’t get the EdgeRouter-4 to read the /etc/tz file. The file exist and I can read it from PuTTy. The /etc/tz changes to the correct time zone every time I in LuCi system settings change time zone.
I have also tried installing the Europe time zone package in hope for good luck but without any luck.

No matter what I do the system time in LuCi overview, date command and system log always show UTC time!? But the time in LuCi system time settings read the correct local time.

Fault tread from the OpenWRT forum

root@[sanitized]:~# uci show system; readlink -f /etc/TZ
system.@system[0]=system
system.@system[0].ttylogin='0'
system.@system[0].urandom_seed='0'
system.@system[0].hostname='[sanitized]'
system.@system[0].description='[sanitized]'
system.@system[0].log_file='/Logs/system.log'
system.@system[0].log_size='640'
system.@system[0].log_proto='udp'
system.@system[0].conloglevel='8'
system.@system[0].cronloglevel='5'
system.@system[0].zonename='Europe/Stockholm'
system.@system[0].timezone='CET-1CEST,M3.5.0,M10.5.0/3'
system.ntp=timeserver
system.ntp.server='0.openwrt.pool.ntp.org' '1.openwrt.pool.ntp.org' '2.openwrt.pool.ntp.org' '3.openwrt.pool.ntp.org'
/tmp/TZ
root@[sanitized]:~#
root@[sanitized]:~# cat /etc/TZ
CET-1CEST,M3.5.0,M10.5.0/3
root@[sanitized]:~#
root@[sanitized]:~# cat /tmp/TZ
CET-1CEST,M3.5.0,M10.5.0/3
root@[sanitized]:~#

There have been some fault finding already pointing to a fault in the code?
External Link

teppot commented on 11.11.2021 11:52

I have this problem too on OpenWrt 21.02.1 r16325-88151b8303. The information here seems relevant:

https://forum.openwrt.org/t/edgerouter-lite-edgerouter-4-date-command-ignores-timezone-shows-utc/81776/28

Could someone please take a look?

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing