I have been quietly running OpenHAB2 for a few years now, lately without paying too much attention due to other stuff coming up.
I can faintly remember that sometime this spring, I had to add
?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
to my jdbc mysql URL, because something didn’t work anymore (or so does the git log of my /etc/ folder say and I think I remember).
Now, since I do not live in UTC zone and my server is set to Europe/Berlin, my charts started to look weird (shifted to the future with a horizontal line of about an hour), although that seems to have been the only effect. In particular timestamps in DB are still fine and match my local time.
No with a new project, this started to bother me and I changed it to
?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B2
Now my charts look normal again, but GMT+2 is summer time here so it seems like it will be wrong again in one week.
How do I deal with this properly?