What part of openHAB linuxpkg and/or openHABian might edit /etc/default/openhab

I searched everywhere I can and cannot figure out where this came from.

Several users, including myself have encountered a case where the timezone of our OH instance changed. This is the important part. i was running happily with US/Mountain as my timezone. Then I ran an apt upgrade and the timezone changed.

This is an openHABian machine and the upgrade was to really just fix OH to 4.3. It’s a 32-bit machine 100 miles away. It’s going to be a long time before I get to upgrade the OS so I can run OH 5. I don’t know if that’s relevant. But I did everything manually, not by going through openhabian-config.

I looked in all the usual places and found that -Duser.timezone=Europe/Berlin was added to /etc/default/openhab.

Now my problem is I can’t figure out where that would have been changed. I searched all of openHAB for "user.timezone` and only four repos return anything: docs, docker, linuxpkg and openHABian.

Docs and Docker are not relevant here.

openHABian does change this file, but the code looks correct. It cats /etc/timezone to a variable and uses that. I verified /etc/timezone on my machine is correct as US/Mountain. linuxpkg seems to just have this file with user.tiemzone only in a comment.

:person_shrugging:

I can’t figure out where to file an issue. My first thought is linuxpkg but I can’t see how it changes that file. openHABian does change that file but I can’t see how it ever got Europe/Berlin for the timezone and I didn’t use openhabian-config to upgrade in the first place.

I need some advice so I can file an issue in the right place.

Long shot: Maybe some script has set it with a default Europe/Berlin and it didn’t get updated during setup.

weird issue. @mstormi might be able to add something regarding openHABian. Even though the built-in config was not used

Yeah if you didn’t use openhabian-config but only apt I wouldn’t know how that’s supposed to change that file. But this timezone stacking is a mess I don’t understand 100% myself. Sorry.
cc: @ecdye

Yeah, we have had lots of weird issues with this in openHABian, thats why the script is so explicit about setting it now. I’m also not sure where it is coming from though.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.