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

[time] Default to user-configured timezone & Reduce internal dependencies #383

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

florian-h05
Copy link
Contributor

Fixes #326 by reading the timezone configured in openHAB and making it the default for JS-Joda.
Also reduces the internal dependencies to other modules of the library, which always is a good thing for avoiding circular dependencies and other trouble.

@florian-h05 florian-h05 requested a review from a team as a code owner September 16, 2024 12:44
@florian-h05 florian-h05 added the bug Something isn't working label Sep 16, 2024
@florian-h05 florian-h05 added this to the to be released milestone Sep 16, 2024
…cy on items and utils namespaces

Fixes openhab#326.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@florian-h05 florian-h05 merged commit 06717c0 into openhab:main Sep 16, 2024
4 checks passed
@florian-h05 florian-h05 deleted the time branch September 16, 2024 12:48
florian-h05 added a commit to florian-h05/openhab-js that referenced this pull request Sep 16, 2024
Follow-up for openhab#383.

Access to utils.javaInstantToJsInstant, utils.javaZDTToJsZDT and utils.javaZDTToJsZDTWithDefaultZoneSystem is kept for backward compatibility,
but considered deprecated.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
florian-h05 added a commit that referenced this pull request Sep 16, 2024
Follow-up for #383.

Access to utils.javaInstantToJsInstant, utils.javaZDTToJsZDT and
utils.javaZDTToJsZDTWithDefaultZoneSystem is kept for backward
compatibility, but considered deprecated.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

js-joda time.ZonedDateTime.now() is returning America/Mexico with DST although the country stopped using it
1 participant