cdjackson / HABmin

A web admin console for openHAB home automation
http://www.cd-jackson.com/index.php/openhab/habmin
217 stars 51 forks source link

DateTime format in .items file is not honored #321

Open tiny-tinker opened 7 years ago

tiny-tinker commented 7 years ago

So I have these items:

DateTime    Now         "Date and Time [%1$tA, %1$tm.%1$td %1$tR]"  { channel="ntp:ntp:local:dateTime" }

DateTime    Sunrise_Time    "Sunrise [%1$tH:%1$tM]"       { channel="astro:sun:home:rise#start" }
DateTime    Sunset_Time     "Sunset [%1$tH:%1$tM]"        { channel="astro:sun:home:set#start" }

And this .sitemap:

    Frame label="Date" {
        Text item=Now icon="clock"
    }

    Frame label="Sun" {
        Text item=Sunrise_Time
        Text item=Sunset_Time

    }

And they look fine in the OpenHab mobile and in the BasicUI: image

But in habmin, the date format is not honored: image

I was pulling my last few hairs out trying to figure out what was wrong as the docs all said I was doing it right, but then I happened to look at it in the mobile app and it looked fine.