the information is normally never refreshed.
That is not true, there is a time out on the sync, about a minute on idle.
No, i have some RasPi running the whole day with different systemtime and time in a Lazarus app. NO Refresh, only restart of the app or now programmed refresh of the settings works (simply call unix.ReReadLocalTime on a raspi to refresh).
BTW: Your testprogramm cannot show the issue
program ShowTime;
uses sysutils;
begin
writeln(DateTimeToStr(time));
end.
because every start the information is refreshed.
Make a GUI app, with a timer and call now and show the result
Put this app in a autostart of the desktop
Only now you can see this issue if the dayligth or similar informatiion is changed. The systemclock will reconize the changes after few time, but the app not. Because the app is caching the tzconfiguration and never updating.
My bad was, the code of mine (first post) is called in a timer every half minute. This was not clear.