better album dates

This commit is contained in:
Kendall Garner 2024-08-25 19:52:44 -07:00
parent 8c929d0dc3
commit 9923c021fa
No known key found for this signature in database
GPG key ID: 18D2767419676C87
7 changed files with 52 additions and 13 deletions

View file

@ -196,6 +196,7 @@ const normalizeAlbum = (
lastPlayedAt: null,
mbzId: null,
name: item.name,
originalDate: null,
playCount: null,
releaseDate: item.year ? new Date(item.year, 0, 1).toISOString() : null,
releaseYear: item.year ? Number(item.year) : null,