[SOLVED] Date format in the GUI of HABpanel

Where can I find the format code which I have to use to format dates in the graphical interface for local time item “ntp_ntp_local_string”?
I tried (according to AngularJS)
EEEE, dd.MMMM.yyyy HH:mm
and (as found in this forum)
[%1$tA, %1$td.%1$tm.%1$tY %1$tH:%1$tM]
and several combinations.
But nothing works.
Here is a picture of what I mean:
grafik
HH:mm works for sunrise and sundown, but not here.
kind regards,
George

I found a solution to my problem.

When I use another item:
ITEM: ntp_ntp_local_dateTime

Then the ANgularJS format works:
EEEE dd.MMM.yyyy HH:mm

grafik

looks like:
grafik

regards,
George

6 Likes

I suspect the first item is a string and the second is a “proper” dateTime. The latter can be formatted as HABpanel is expecting it to be in a certain format, whereas the string would need to be converted to a dateTime to be formattable.

1 Like

Thanks for the explanation, Mikael.