fix "Invalid date"

This commit is contained in:
Erik 2021-11-05 00:07:46 +01:00 committed by GitHub
parent 50b4a73654
commit 7ef21577f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -383,7 +383,7 @@ function copyToClipboard(text) {
/* js */
async function getAlbumRelease(uri) {
const info = await Spicetify.CosmosAsync.get(`hm://album/v1/album-app/album/${uri}/desktop`);
return { year: info.year, month: (info.month ?? 1) - 1, day: info.day ?? 0 };
return { year: info.year, month: info.month ?? 1, day: info.day ?? 1 };
}
function isLight(hex) {