Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OH using wrong time zone #1973

Open
andrewfg opened this issue Feb 9, 2025 · 6 comments
Open

OH using wrong time zone #1973

andrewfg opened this issue Feb 9, 2025 · 6 comments

Comments

@andrewfg
Copy link
Contributor

andrewfg commented Feb 9, 2025

Problem

As mentioned in the forum post below OH v4.3.2 uses the wrong time zone on linux / openhabian installations.

Solution

The present (work around) solution is to make a manual entry in EXTRA_JAVA_OPTS. However my proposal is that openhabian should do this as part of the installation / upgrade script. Either within the existing openhabian installation / upgrade process, or via a specific new openhabian-config menu item.

https://community.openhab.org/t/oh-4-3-2-using-wrong-time-zone/162181/1

@mstormi
Copy link
Contributor

mstormi commented Feb 10, 2025

Like I already also replied on the forum, that's not correct.
Note we don't know how you have setup your OS so your instance isn't representative unless you can reproduce it on a fresh install.

In fact, openHABian is adding that already:
https://github.com/openhab/openhabian/blob/main/functions/openhab.bash#L252

@andrewfg
Copy link
Contributor Author

andrewfg commented Feb 10, 2025

Mine is not a fresh install. It was working fine on OH 4.3.M2. And the openhabian upgrade to OH 4.3.2 broke it. But if you can't be bothered to take me seriously, I certainly can't be bothered to try and repeat that on a new old install.

@ecdye
Copy link
Member

ecdye commented Feb 10, 2025

It's possible that when a user manually updates their timezone from openHABian-config we don't update the setting in the openHAB Java options.

It's also possible that the upgrade reset the configuration file and removed the timezone settings. I'm not sure if openHAB does something like that though and would have to double check.

However @mstormi is right, the system currently does set the timezone to whatever value is configured in the first boot configuration file.

@andrewfg Was there something more you are wishing to be done than that?

As a side note we do try to take all issues seriously but we just have to verify that an error happens on a fresh install otherwise it becomes to difficult for us to handle.

@mstormi
Copy link
Contributor

mstormi commented Feb 11, 2025

that the upgrade reset the configuration file and removed the timezone settings.
I'm not sure if openHAB does something like that though and would have to double check

Me neither but if so it has been like that ever and you would need to complain with the distro maintainer not us
cc: @BClark09

We could re-/overwrite the EXTRA_JAVA_OPTS settings after an OH upgrade, but I'm not fully aware of side effects of doing so.
And I'm pretty sure that would in turn annoy others that have changed that setting manually.

@andrewfg
Copy link
Contributor Author

Perhaps, as suggested, add a menu item to explicitly do it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants