batocera-linux / batocera-emulationstation

MIT License
321 stars 247 forks source link

Issue with the "last played" counter #1754

Open pajarorrojo opened 4 months ago

pajarorrojo commented 4 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 2 months 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

Snapouille commented 2 weeks ago

I agree that we're dealing with a bug, I have exactly the same problem.

Darknior commented 2 weeks ago

Mais c'est un nouveau bug ? de la v40 ou tu ne l'avais jamais vue avant ? J'avoue je n'ai pas fais attention, mais si c'est le cas c'est moche ... de mémoire avant ça fonctionnait pour moi. Genre en v39 ...

Snapouille commented 2 weeks ago

@Darknior yes it's a new bug, before it worked fine

pajarorrojo commented 2 weeks ago

@Snapouille @Darknior This is a bug since v40... note that my first post is from July. Maybe not many people have noticed because this happens with the new variable {game:lastplayed} and not with the old md_lastplayed label name. Not many themes are updated with the new bindings variables.

pajarorrojo commented 2 weeks ago

Technically, its a bug since bindings have been enabled, its just that most themes aren’t using them yet