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

Year of scrobble is never present in display #233

Closed
Nixinova opened this issue May 20, 2024 · 1 comment · Fixed by #234
Closed

Year of scrobble is never present in display #233

Nixinova opened this issue May 20, 2024 · 1 comment · Fixed by #234

Comments

@Nixinova
Copy link
Contributor

Describe the bug
The year of scrobbles is never present. This can be misleading making you think you'll be able to scrobble a track even if its years old.

Expected behavior
Year is included in date if <= last year.

Screenshots

image
2005
image

https://www.last.fm/user/test

@Nixinova Nixinova changed the title Year is not present Year of scrobble is never present in display May 20, 2024
@Nixinova
Copy link
Contributor Author

if (!isToday(new Date(scrobble.timestamp))) {
timestampFormat = `${settings?.use12Hours ? 'M/d' : 'd/MM'} `;
}
timestampFormat += settings?.use12Hours ? 'hh:mm a' : 'HH:mm';
theTimestamp = format(new Date(scrobble.timestamp), timestampFormat);

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

Successfully merging a pull request may close this issue.

1 participant