TarheelGrad1998 / gallery-card

A custom card for Home Assistant that will display images and/or videos from a folder in the style of a gallery.
97 stars 30 forks source link

caption_format 2-digit day, month, and hour #21

Closed gadgetchnnel closed 2 years ago

gadgetchnnel commented 2 years ago

The documentation for caption_format has the %d, %m, and %H options described as the 2-digit day, month, and hour respectively.

However, when using the format as "%d/%m/%YYY %H:%M" which I would expect to format as "04/09/2021 09:04" for a video from today at 09:04 AM, it actually returns "4/9/2021 9:04".

Is there any way I can have it formatted the way I want?

TarheelGrad1998 commented 2 years ago

Config option caption_leading_zeros has been added to support this request in v3.3, just released.