home-assistant-sun-card icon indicating copy to clipboard operation
home-assistant-sun-card copied to clipboard

Time format should use time format setting added in 2021.6

Open Unfocused opened this issue 3 years ago • 0 comments

Home Assistant 2021.6 added a time format setting per-user:

  • https://www.home-assistant.io/blog/2021/06/02/release-20216/#time-format-settings
  • https://github.com/home-assistant/frontend/pull/9042

Available options are:

  • Auto (use language setting) (DEFAULT)
  • Use system locale
  • 12 hours (AM/PM)
  • 24 hours

Currently this card just uses the language setting, ignoring this user setting. Would be good if it followed the user preference.

AFAICT, it's available via hass.locale.time_format, which will be one of language, system, 12, or 24.

Unfocused avatar Feb 20 '22 02:02 Unfocused