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] Fix toZDT fails when injection caching is enabled because instanceof checks don't work #312

Merged
merged 8 commits into from
Dec 16, 2023

Conversation

florian-h05
Copy link
Contributor

@florian-h05 florian-h05 commented Dec 16, 2023

Fixes #288.

When time.toZDT got a time.ZonedDateTime passed in from an external library, it failed to recognize that it in fact got a time.ZonedDateTime because instanceof checks were not working due to the webpack settings for the injection caching.

Also fixes utils.isJsInstanceOfJava not working and renames utils.isJsInstanceOfJava to utils.isJsInstanceOfJavaType.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@florian-h05 florian-h05 marked this pull request as ready for review December 16, 2023 11:42
@florian-h05 florian-h05 requested a review from a team as a code owner December 16, 2023 11:42
@florian-h05 florian-h05 merged commit a8080bd into openhab:main Dec 16, 2023
4 checks passed
@florian-h05 florian-h05 deleted the fix-288 branch December 16, 2023 11:49
@florian-h05 florian-h05 added the bug Something isn't working label Dec 16, 2023
@florian-h05 florian-h05 added this to the 4.7.1 milestone Dec 16, 2023
florian-h05 added a commit to florian-h05/openhab-js that referenced this pull request Dec 17, 2023
Replaces the usage of `.raw` with `.rawQtyType`.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
florian-h05 added a commit to florian-h05/openhab-addons that referenced this pull request Dec 24, 2023
Regression from openhab/openhab-js#312.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
jlaur pushed a commit to openhab/openhab-addons that referenced this pull request Dec 25, 2023
Regression from openhab/openhab-js#312.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
jlaur pushed a commit to openhab/openhab-addons that referenced this pull request Dec 25, 2023
Regression from openhab/openhab-js#312.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
…ab#16106)

Regression from openhab/openhab-js#312.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
…ab#16106)

Regression from openhab/openhab-js#312.

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.

Parsing RFC DateTime string doesn't work with 4.5.1 add-on but works with npm installed library
1 participant