Timezone issue with schedule based on Item

I have an item (based on an API call) that contains a datetime (sunset) as shown below it seems about right. 18:39 in timzone +2 is indeed the time of the sunset.

If you open the item itself is shown the datetime as 16:39 without a timzone. Wild guess here is that it is the same datetime, but shown as UTC. Which make sense since it’s a reasonable convention.

If I now add a schedule where I select the item as the trigger…

image

… then the trigger end up as being triggered at 14:39

image

It seems like the schedule is adjusting for the timezone in the wrong direction (16:39 - 2h)

What is going on? And where to start to fix this?

Thx!

First verify that your times appear correct in all other circumstances, e.g timestamps in logs, cron triggers, stuff like that. That will eliminate the problem where the OS or Java timezone doesn’t match.

If that all checks out, create a rule and log out the state of the Item. We may need to experiment a bit with the state of the Item to figure out what’s going on.