Skip to content

Commit

Permalink
DateTimeType spec fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng committed Sep 16, 2024
1 parent d8f0e9e commit c173e4e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spec/openhab/core/types/date_time_type_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@
end

it "parses time only strings with a timezone" do
zone_id = ZoneId.of("+1000")
date_time_type = DateTimeType.parse("3:30+1000").to_zone(zone_id)
date_time = ZonedDateTime.now.with(LocalTime.parse("3:30")).with_zone_same_local(zone_id)
expect(date_time_type).to eq date_time
expect(DateTimeType.parse("3:30-1000").zoned_date_time).to eq Time.parse("3:30-1000").to_zoned_date_time
end
end
end

0 comments on commit c173e4e

Please sign in to comment.