royto / logbook-card

Logbook card for Home Assistant UI Lovelace
GNU General Public License v3.0
203 stars 9 forks source link

"date_format": not using a default system HA format #129

Open ildar170975 opened 4 months ago

ildar170975 commented 4 months ago

Describe the bug According to Docs: изображение i.e. a default time format is supposed to be used. My system format is изображение

But a default time format seems to be using "AM/PM": изображение

type: custom:logbook-card
entity: sun.sun

Similarly, if an attribute is a timestamp: изображение

then it is shown in a proper system format only if no type: date option specified: изображение

type: custom:logbook-card
entity: binary_sensor.battery_charging_ipad_air_2
attributes:
  - value: last_seen
  - value: last_seen
    type: date
    label: 'type: date'

and with type: date option is is shown in "AM/PM" format.

To Reproduce see above

Expected behavior A default date/time format should be as defined in HA system settings.

Screenshots see above

Environment (please complete the following information):

Card configuration see above

Additional context Add any other context about the problem here.

royto commented 4 months ago

It is using the fecha default date format.

Will see if I can change that.