royto / logbook-card

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

Time calculation problem #14

Closed septeven closed 1 year ago

septeven commented 4 years ago

I'm trying your card - there is a problem with the time ago calculation.

First, it doesn't take in consideration the days... Problem is :

Second, probably because my setup in 24-hour time... Problem is :

Definitely need a fix about it, and definitely need this improvement

royto commented 4 years ago

Hi,

I don't have this issue on my HA. I'm on 24 hour time too (France).

What is the configuration of your card ?

Is it the first event of the period? I know that the first duration can be wrong. When I get history for a period of time (ex: 5 days, default is 1) it gives you the start date of the period and not the start date of the event, so the calculation is wrong ...

If it is possible can you give me the raw values ? Using your browser devtools ( in the network tab, it should be something starting by history/period/)

royto commented 1 year ago

closing as no update since 2 years ...