I have a strange problem to get the correct DateTime displayed… I’m on the latest snapshot #1597 and dont know if its related to this or something else…
2019-05-23 11:27:56.678 [vent.ItemStateChangedEvent] - SPPet_2_PositionSince changed from NULL to 2019-05-23T08:27:54.000+0200
2019-05-23 11:27:56.745 [vent.ItemStateChangedEvent] - SPPet_2_PositionSinceString changed from NULL to 2019-05-23T08:27:54+00:00
but in the Sitemap it shows me the formated Date with 2 hours behind…
The correct time should be 10:27
Date and Timezone in PaperUI and openhabian config are both set and correct.
anyone have a hint for me how to display the correct time?
Maybe i dont understand it right how OH handles the dates…
I try to explain again:
The source is saving the time in UTC +00.00 (i cant change that)
In the official App you have to set the correct Timezone (mine is UTC+2) and now you have in the App the correct time and date…
Now i want to have the same in openhab… In OH i have set the +0200 TZ and also OH and Raspberry is showing me the correct DateTime in the correct Timezone…
I thought i can use the http Json response (2019-05-23T08:27:54+00:00) from the API and convert it with a DateTime Item easily to the correct timezone… but somehow OH does interpret this “false”?!
Thats why i used for testing the clean json string and the datetime item…
In the Log i see that the DateTime Item SPPet_2_PositionSince uses at the end the +0200 (assuming its the Timezone) so 08:27 + 2 = 10:27 but in the sitemap i only get 08:27 for this item…
And my question is, do is something wrong, or how can i get the original UTC +0 time to my current timezone.