Skip to content

Commit

Permalink
DateTimeType implements Java's Comparable in openHAB 4.3
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
  • Loading branch information
jimtng committed Sep 7, 2024
1 parent d9c465f commit 4faa56c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/openhab/core/types/date_time_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class DateTimeType
extend Forwardable
include Comparable

# @deprecated OH 4.2 guard not needed in OH 4.3
# DateTimeType implements Java's Comparable interface in openHAB 4.3
include ComparableType if OpenHAB::Core.version >= OpenHAB::Core::V4_3

#
# Regex expression to identify strings defining a time in hours, minutes and optionally seconds
#
Expand Down

0 comments on commit 4faa56c

Please sign in to comment.