Local time in 21.02 not correct in luci interface

I'm using OpenWrt 21.02-SNAPSHOT r16015-beab1bf163 on a Raspberry Pi 4

The luci statuspage is telling me local time is 2021-04-17 11:30:31
But it's not the correct time.
its correct in the system tab local time is 2021-04-17 13:30:31 (this is the correct timezone)

Not a big deal, is this a bug?

just in case, check both timezone and zonename on system using uci show system

1 Like
root@OpenWrt-Pi4:~# date
Sat Apr 17 20:33:10 UTC 2021
root@OpenWrt-Pi4:~#

This is UTC time offcourse, at my place it's 2 hours later. 22:33, see uci show system
This time is shown on the status page of luci.

root@OpenWrt-Pi4:~# uci show system
system.@system[0]=system
system.@system[0].zonename='Europe/Amsterdam'
system.@system[0].ttylogin='0'
system.@system[0].log_size='64'
system.@system[0].urandom_seed='0'
system.@system[0].hostname='OpenWrt-Pi4'
system.@system[0].log_proto='udp'
system.@system[0].conloglevel='8'
system.@system[0].cronloglevel='9'
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'

On Luci

The system page is showing the correct timezone time.

your system doesn't have timezone set, try:

uci set system.@system[0].zonename='Europe/Amsterdam'
uci set system.@system[0].timezone='CET-1CEST,M3.5.0,M10.5.0/3'
uci commit system
sync
reboot
2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.