-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Simplify DateTimeType
handling
#17725
Draft
jlaur
wants to merge
55
commits into
openhab:main
Choose a base branch
from
jlaur:datetimetype-instant
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jlaur
added
work in progress
A PR that is not yet ready to be merged
awaiting other PR
Depends on another PR
labels
Nov 9, 2024
jlaur
force-pushed
the
datetimetype-instant
branch
3 times, most recently
from
November 11, 2024 19:29
86ec8a2
to
d397b88
Compare
jlaur
force-pushed
the
datetimetype-instant
branch
8 times, most recently
from
November 17, 2024 20:51
2a79387
to
9940eec
Compare
jlaur
force-pushed
the
datetimetype-instant
branch
11 times, most recently
from
November 24, 2024 22:36
315137b
to
b3209c5
Compare
jlaur
force-pushed
the
datetimetype-instant
branch
2 times, most recently
from
November 25, 2024 21:57
e34093e
to
fdf7df0
Compare
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
jlaur
force-pushed
the
datetimetype-instant
branch
2 times, most recently
from
November 26, 2024 22:01
d7d358e
to
adc97e5
Compare
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
Signed-off-by: Jacob Laursen <[email protected]>
jlaur
force-pushed
the
datetimetype-instant
branch
from
November 26, 2024 22:38
adc97e5
to
d27db29
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a cleanup only and does not change functionality when openhab/openhab-core#3583 has first been merged. The core PR discards time-zone from
DateTimeType
, thus binding code can be simplified:ZonedDateTime
using either time-zone fromTimeZoneProvider
orZoneId.systemDefault()
have been simplified to useInstant
. In some cases this entirely eliminated the need forTimeZoneProvider
, which has then been removed.toZone
andtoLocaleZone
have been removed.getZonedDateTime
have been removed. In cases where time-zone is needed,getInstant().atZone(ZoneId.systemDefault())
is now explicitly called.Related to openhab/openhab-core#3583