diff --git a/src/renderer/api/navidrome/navidrome-normalize.ts b/src/renderer/api/navidrome/navidrome-normalize.ts index 37dabeb7..666192bb 100644 --- a/src/renderer/api/navidrome/navidrome-normalize.ts +++ b/src/renderer/api/navidrome/navidrome-normalize.ts @@ -121,7 +121,7 @@ const normalizeSong = ( playlistItemId, releaseDate: (item.releaseDate ? new Date(item.releaseDate) - : new Date(item.year, 0, 1) + : new Date(Date.UTC(item.year, 0, 1)) ).toISOString(), releaseYear: String(item.year), serverId: server?.id || 'unknown', diff --git a/src/renderer/api/subsonic/subsonic-normalize.ts b/src/renderer/api/subsonic/subsonic-normalize.ts index 42d257d9..43a4aad4 100644 --- a/src/renderer/api/subsonic/subsonic-normalize.ts +++ b/src/renderer/api/subsonic/subsonic-normalize.ts @@ -207,7 +207,7 @@ const normalizeAlbum = ( name: item.name, originalDate: null, playCount: null, - releaseDate: item.year ? new Date(item.year, 0, 1).toISOString() : null, + releaseDate: item.year ? new Date(Date.UTC(item.year, 0, 1)).toISOString() : null, releaseYear: item.year ? Number(item.year) : null, serverId: server?.id || 'unknown', serverType: ServerType.SUBSONIC,