batocera-linux / batocera-emulationstation

MIT License
311 stars 238 forks source link

Issue with the "last played" counter #1754

Open pajarorrojo opened 2 months ago

pajarorrojo commented 2 months ago

Concerned project

Batocera

Distribution Version

Batocera V40 2024/06/28

Architecture

Steam Deck

Issue description

Hi @fabricecaruso i hope you are doing well... a little issue here: The "last played" counter always shows 16 hours when the game has just been launched.

The line of code in the theme is: <text>'' + '${theme-lastplayedLabel}' + '... ' + {game:lastplayed}.elapsed().proper() + ''</text>

https://github.com/pajarorrojo/es-theme-PlayStation-X/blob/7ab34f3270c7e6368172b4a4c00d7ee17e8de904/_theme_views/top-info.xml#L290

Thanks!

screenshot-2024 07 06-16h52 07

screenshot-2024 07 06-16h51 52

Logs and data

No response

pajarorrojo commented 5 days ago

UPDATE: I've noticed that the data it shows is the hours since the start of the day... For example, if I run the game at 8pm (20.00h), it shows: 20 hours ago. If I run it at 4pm it shows 16 hours ago... etc. screenshot-2024 09 18-21h48