royto / logbook-card

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

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

Open ildar170975 opened 1 month ago

ildar170975 commented 1 month 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 1 month ago

It is using the fecha default date format.

Will see if I can change that.