Wrong timezone only for rules?


when I check the current time in the logs everything is fine. But I added a rule to execute daily at 10pm, unfortunately that’s already executed at 9pm.

Any idea where this mismatch might come from?


Login to karaf console and check if the correct timezone is set there.
What is the result if you execute this in the karaf console:

env |grep timezone

Is that your timezone ?

Your host operating system invariably has a timezone setting.

When Java loads, it’ll use the host timezone by default - but it can be set independently.
The logging service uses the Java timezone.

When openHAB loads, it’ll use the Java timezone by defaut - but it can be set independently.
Rules, Items etc. use the openHAB timezone.

And then there’s the timezone for the database used for persistence :slight_smile: