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

Clarify DateTimeType deprecation notice #1702

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

jlaur
Copy link
Contributor

@jlaur jlaur commented Dec 11, 2024

Refine #1701 slightly to avoid misunderstandings - see https://community.openhab.org/t/the-method-getzoneddatetime-from-the-type-datetimetype-is-deprecated/160763/15

  • Don't mention getInstant(). Although in some situations it's preferable to use, it is not a direct replacement.
  • Mention DSL rules, because this is where the users are impacted.
  • Provide full example with ZoneId.systemDefault().

@jlaur jlaur requested a review from a team as a code owner December 11, 2024 20:43
@kaikreuzer kaikreuzer merged commit e72bd89 into openhab:main Dec 11, 2024
5 checks passed
@kaikreuzer kaikreuzer added this to the 4.3 milestone Dec 11, 2024
@jlaur jlaur deleted the datetimetype-instant branch December 12, 2024 06:10
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