Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with the "last played" counter #1754

Open
pajarorrojo opened this issue Jul 6, 2024 · 6 comments
Open

Issue with the "last played" counter #1754

pajarorrojo opened this issue Jul 6, 2024 · 6 comments

Comments

@pajarorrojo
Copy link
Contributor

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
Copy link
Contributor Author

pajarorrojo commented Sep 18, 2024

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
Copy link

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

@Darknior
Copy link

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
Copy link

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

@pajarorrojo
Copy link
Contributor Author

pajarorrojo commented Nov 12, 2024

@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
Copy link
Contributor Author

pajarorrojo commented Nov 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants