Times of Astro Sun / Moon and rules 1 hour early

Last week I had to do a new setup of my system due to a sd card that went crazy.
So I took a new sd card and installed openhabian and imported my stored config.
After a few minutes everything was back up and running.
The thing I noticed is that the time of the Astro sun and Astro moon are 1 hour early. All rules relying on times are 1 hour early.
My system time shows the correct time.
I have set a correct location in Astro sun / moon.
I have set a system time zone in openhabian config tool.

Does it have something to do with the daylight saving time that started for the Netherlands on the 31st of March?
What did I miss to set correctly?

Usually this is a timezone problem.

I don’t know where openHABian changes the timezone and if it covers all the places. But I do know that the timezone of the OS, Java, and the locale settings in openHAB can all have an influence on Astro with the Java timezone taking precedence over the rest.

After using openhabian-config, did you restart OH?

Running the date command will tell you what the OS thinks the timezone is. date +"%Z %z" will just show the timezone and offset.

The Java timezone is set through arguments to the command that starts OH.

After using openhabian-config I did do a restart.

When running the date command I get: CEST +0200
When running timedatectl status
Local time: ma 2024-04-08 20:15:59 CEST
Universal time: ma 2024-04-08 18:15:59 UTC
RTC time: n/a
Time zone: Europe/Amsterdam (CEST, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no

I need to look into the java time as I run openhabian which is started automatically.

The below command and a reboot did the trick.

sudo timedatectl set-timezone “Europe/Amsterdam"