diff --git a/bundles/org.openhab.binding.roku/src/main/java/org/openhab/binding/roku/internal/handler/RokuHandler.java b/bundles/org.openhab.binding.roku/src/main/java/org/openhab/binding/roku/internal/handler/RokuHandler.java index b258f6570c0..4507caa3542 100644 --- a/bundles/org.openhab.binding.roku/src/main/java/org/openhab/binding/roku/internal/handler/RokuHandler.java +++ b/bundles/org.openhab.binding.roku/src/main/java/org/openhab/binding/roku/internal/handler/RokuHandler.java @@ -15,7 +15,7 @@ package org.openhab.binding.roku.internal.handler; import static org.openhab.binding.roku.internal.RokuBindingConstants.*; import java.math.BigDecimal; -import java.time.ZonedDateTime; +import java.time.Instant; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -214,7 +214,7 @@ public class RokuHandler extends BaseThingHandler { } if (position >= 0 && duration > 0) { - updateState(END_TIME, new DateTimeType(ZonedDateTime.now().plusSeconds(duration - position))); + updateState(END_TIME, new DateTimeType(Instant.now().plusSeconds(duration - position))); updateState(PROGRESS, new PercentType(BigDecimal.valueOf(Math.round(position / (double) duration * 100.0)))); } else { diff --git a/bundles/org.openhab.binding.roku/src/main/resources/OH-INF/i18n/roku.properties b/bundles/org.openhab.binding.roku/src/main/resources/OH-INF/i18n/roku.properties index dd6c31dbe37..fd452c287f3 100644 --- a/bundles/org.openhab.binding.roku/src/main/resources/OH-INF/i18n/roku.properties +++ b/bundles/org.openhab.binding.roku/src/main/resources/OH-INF/i18n/roku.properties @@ -80,6 +80,8 @@ channel-type.roku.channelName.label = Channel Name channel-type.roku.channelName.description = The Name of the Channel Currently Selected channel-type.roku.control.label = Control channel-type.roku.control.description = Control playback e.g. Play/Pause/Next/Previous +channel-type.roku.endTime.label = End Time +channel-type.roku.endTime.description = The date/time when the currently playing media will end channel-type.roku.playMode.label = Play Mode channel-type.roku.playMode.description = The Current Playback Mode channel-type.roku.powerState.label = Power State @@ -93,6 +95,8 @@ channel-type.roku.programRating.label = Program Rating channel-type.roku.programRating.description = The TV Parental Guideline Rating of the Current TV Program channel-type.roku.programTitle.label = Program Title channel-type.roku.programTitle.description = The Name of the Current TV Program +channel-type.roku.progress.label = Media Progress +channel-type.roku.progress.description = The current progress of playing media channel-type.roku.signalMode.label = Signal Mode channel-type.roku.signalMode.description = The Signal Type of the Current TV Channel, ie: 1080i channel-type.roku.signalQuality.label = Signal Quality