Skip to content

Improve DateTimeType examples - #2765

Open
jlaur wants to merge 1 commit into
openhab:mainfrom
jlaur:dsl-getzoneid
Open

Improve DateTimeType examples#2765
jlaur wants to merge 1 commit into
openhab:mainfrom
jlaur:dsl-getzoneid

Conversation

@jlaur

@jlaur jlaur commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

This is now possible after openhab/openhab-core#5481.

This is better than the previously provided examples, because it uses the currently configured time zone in openHAB rather than the JVM time zone.

@netlify

netlify Bot commented Aug 12, 2026

Copy link
Copy Markdown

Thanks for your pull request to the openHAB documentation! The result can be previewed at the URL below (this comment and the preview will be updated if you add more commits).

Built without sensitive environment variables

Name Link
🔨 Latest commit b367a43
🔍 Latest deploy log https://app.netlify.com/projects/openhab-docs-preview/deploys/6a81cc7b84aaf40008208b8d
😎 Deploy Preview https://deploy-preview-2765--openhab-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread src/configuration/rules-dsl.md Outdated

@dilyanpalauzov dilyanpalauzov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I think a comment in the first example would be useful, stating from which object which method does the example calls. This will help the users to understand, what is going on.

@dilyanpalauzov

Copy link
Copy Markdown
Contributor

E.g.

ZoneId refers to class java.time.ZoneId, zoneId calls method ScriptServiceUtil.getZoneId().

@dilyanpalauzov

Copy link
Copy Markdown
Contributor

Source code of the above:


`ZoneId` refers to class [java.time.ZoneId](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/time/ZoneId.html), `zoneId` calls method [ScriptServiceUtil.getZoneId()](https://www.openhab.org/javadoc/latest/org/openhab/core/model/script/scriptserviceutil#getZoneId()).

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
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

Successfully merging this pull request may close these issues.

2 participants