Incorrect localtime

Hi there,
i upgraded to openwrt 24.10.5 on my generic x86_64 box. Since then the localtime is buggy and my dynamic dns script fires on the wrong time.
I installed zoneinfo-europe and set the timezone to Europe/Berlin in luci.
/etc/TZ links to /usr/share/zoneinfo/Europe/Berlin.
Berlin should be UTC+1.

# hwclock && date && date -u
Sat Feb 14 07:43:05 2026  0.000000 seconds
Sat Feb 14 05:43:06 TZif 2026
Sat Feb 14 07:43:06 UTC 2026

/etc/config/system:

config system
	option hostname 'SomeName'
	option timezone 'CET-1CEST,M3.5.0,M10.5.0/3'
	option ttylogin '0'
	option log_size '128'
	option urandom_seed '0'
	option zonename 'Europe/Berlin'
	option log_proto 'udp'
	option conloglevel '8'
	option cronloglevel '7'

config timeserver 'ntp'
	option enable_server '1'
	option interface 'lan'
	list server '0.de.pool.ntp.org'
	list server '1.de.pool.ntp.org'
	list server '2.de.pool.ntp.org'
	list server '3.de.pool.ntp.org'

/etc/TZ:

lrwxrwxrwx    1 root     root          33 Feb 14 05:35 /etc/TZ -> /usr/share/zoneinfo/Europe/Berlin
# head -c 20 /etc/TZ
TZif2

Where did i went wrong?

Your /etc/localtime points to some place UTC-2 like Greenland.

I did not interfere with /etc/localtime:

# l /etc/localtime
lrwxrwxrwx    1 root     root          14 Dec 17 19:08 /etc/localtime -> /tmp/localtime
# l /tmp/localtime
lrwxrwxrwx    1 root     root          33 Feb 14 05:37 /tmp/localtime -> /usr/share/zoneinfo/Europe/Berlin
1 Like

Set to Berlin from Brussels, did not change at all.
cat /etc/TZ
CET-1CEST,M3.5.0,M10.5.0/3

I did a clean sysupgrade just now, installed zoneinfo-europe as first package, then set timezone and rebooted, now it works properly. Probably something messed up last time during a hasty set up.

2 Likes

I never install it, only set the TZ i Luci, time is correct anyway.

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