]> git.basschouten.com Git - openhab-addons.git/commitdiff
[feed] Change patter for DateTime channel types to be considered by i18n-tool (#11618)
authorChristoph Weitkamp <github@christophweitkamp.de>
Sun, 21 Nov 2021 14:56:13 +0000 (15:56 +0100)
committerGitHub <noreply@github.com>
Sun, 21 Nov 2021 14:56:13 +0000 (15:56 +0100)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
bundles/org.openhab.binding.feed/src/main/resources/OH-INF/i18n/feed.properties
bundles/org.openhab.binding.feed/src/main/resources/OH-INF/thing/thing-types.xml

index a2fcf337ea49c05190357221255da9a9f825b8c8..b8cfef11b448a146f667c80d870c3246e3498942 100644 (file)
@@ -23,8 +23,10 @@ channel-type.feed.description.label = Description
 channel-type.feed.description.description = Description of the feed.
 channel-type.feed.last-update.label = Last Update
 channel-type.feed.last-update.description = The last update date of the feed.
+channel-type.feed.last-update.state.pattern = %1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS
 channel-type.feed.latest-date.label = Latest Published Date
 channel-type.feed.latest-date.description = Contains the published date of the last feed entry.
+channel-type.feed.latest-date.state.pattern = %1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS
 channel-type.feed.latest-description.label = Latest Description
 channel-type.feed.latest-description.description = Contains the description of the last feed entry.
 channel-type.feed.latest-enclosure.label = Latest Enclosure
index 017295641e39eec8f89ec0db990fcbb6b67b9613..188872273b172a28db8d79b2bddccd4db8b13866 100644 (file)
@@ -62,7 +62,7 @@
                <item-type>DateTime</item-type>
                <label>Latest Published Date</label>
                <description>Contains the published date of the last feed entry.</description>
-               <state readOnly="true" pattern="%tc %n"/>
+               <state readOnly="true" pattern="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"/>
        </channel-type>
 
        <channel-type id="latest-link">
                <item-type>DateTime</item-type>
                <label>Last Update</label>
                <description>The last update date of the feed.</description>
-               <state readOnly="true" pattern="%tc %n"/>
+               <state readOnly="true" pattern="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS"/>
        </channel-type>
 
        <channel-type id="number-of-entries" advanced="true">