a-p-z / datetime-card

A minimalistic card for Home Assistant Lovelace UI which shows how many days it has been between any input_datetime and today.
21 stars 1 forks source link

Date reset not using local date #34

Open kaizersoje opened 1 month ago

kaizersoje commented 1 month ago

I have noticed the date reset is not using the date in the local timezone.

I am trying to reset an entity and it shows up yesterday's date (2024/05/19) instead of today's date (2024/05/20). image

image

a-p-z commented 1 month ago

Hi @kaizersoje, thanks for reporting the issue. Is the date wrong only in the confirmation message? Or the date of the entity is wrong after the reset too?

kaizersoje commented 1 month ago

Hi @kaizersoje, thanks for reporting the issue. Is the date wrong only in the confirmation message? Or the date of the entity is wrong after the reset too?

It is setting the date on both the message and after reset