[Sitemap] Space added when formatting Number:Time
with pattern %1$tH
#3722
Labels
bug
An unexpected problem or unintended behavior of the Core
Given:
items/repro.items:
sitemaps/sitemaps.items:
Set value:
openhab:update Repro_Pattern "60 min"
MainUI:
But sitemap has a space added:
Expected Behavior
When using the provided pattern there should not be any spaces added.
Current Behavior
A space is added at the end. The same is true for the pattern
%1$tH
, for example. However, if both are used, space is only added after the first, soX%1$tHX%1$tMX
will become "X01 X00X".Possible Solution
Possible regression of #3644. See also openhab/openhab-webui#1953.
Steps to Reproduce
See description.
Context
This breaks formatting with state pattern
%1$tH:%1$tM
. For this specific pattern a work-around is to use%1$tR
. This was fixed just in time for RC1 for the Miele@home binding: openhab/openhab-addons#15280, but other bindings (and user configuration) can easily be affected.I did not observe this problem in 3.4.4, so it seems to be a 4.0 regression.
Your Environment
The text was updated successfully, but these errors were encountered: