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

Invalid Date #61

Closed monpelaud closed 1 year ago

monpelaud commented 1 year ago

Hi, My v3.3.1 card: Ok type: custom:gallery-card menu_alignment: Bottom entities:

My v3.4.2 card: 'Invalid Date' type: custom:gallery-card menu_alignment: Bottom entities:

I don't understand where is my error, can you help me? Thanks for your help.

TarheelGrad1998 commented 1 year ago

Try getting rid of the "salon___" part, i.e.:

file_name_format: YYYYMMDD_HHhmm

monpelaud commented 1 year ago

Thanks for your quick reply.

My card options: file_name_format: YYYYMMDD caption_format: D/M/Y

With filename "20230324.jpg" I get caption "24/3/+0100"

TarheelGrad1998 commented 1 year ago

I assume you want YY and not Y. It looks like it is interpreting the "Y" the same as "ZZ" which is...interesting.

Anyway, try YY and let me know if that does it.

monpelaud commented 1 year ago

caption_format: D/M/YYYY works fine, I get "24/3/2023" and caption_format: D/M/YY also works fine, I get "24/3/23". Thanks.