mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2025-03-04 14:27:14 +00:00
hdtracks: Use UTC to fix "one day off" timezone issue
Input string is in UTC, so the numbers should also be extracted as UTC.
This commit is contained in:
parent
1323c14d4f
commit
4ad72e58d4
1 changed files with 3 additions and 3 deletions
|
@ -45,9 +45,9 @@ function parseHDtracksRelease(data, releaseUrl) {
|
||||||
artist_credit: data.artists.map(name => ({ artist_name: name })),
|
artist_credit: data.artists.map(name => ({ artist_name: name })),
|
||||||
barcode: data.upc,
|
barcode: data.upc,
|
||||||
labels: [{ name: data.label }],
|
labels: [{ name: data.label }],
|
||||||
year: releaseDate.getFullYear(),
|
year: releaseDate.getUTCFullYear(),
|
||||||
month: releaseDate.getMonth() + 1,
|
month: releaseDate.getUTCMonth() + 1,
|
||||||
day: releaseDate.getDate(),
|
day: releaseDate.getUTCDate(),
|
||||||
comment: data.quality.replace(' · ', '/'),
|
comment: data.quality.replace(' · ', '/'),
|
||||||
annotation: [data.cLine, data.pLine].join('\n'),
|
annotation: [data.cLine, data.pLine].join('\n'),
|
||||||
// `data.credits` is currently not included as its unclear for which tracks the individual credits apply
|
// `data.credits` is currently not included as its unclear for which tracks the individual credits apply
|
||||||
|
|
Loading…
Add table
Reference in a new issue