mirror of
https://github.com/murdos/musicbrainz-userscripts
synced 2024-12-12 19:32:27 +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 })),
|
||||
barcode: data.upc,
|
||||
labels: [{ name: data.label }],
|
||||
year: releaseDate.getFullYear(),
|
||||
month: releaseDate.getMonth() + 1,
|
||||
day: releaseDate.getDate(),
|
||||
year: releaseDate.getUTCFullYear(),
|
||||
month: releaseDate.getUTCMonth() + 1,
|
||||
day: releaseDate.getUTCDate(),
|
||||
comment: data.quality.replace(' · ', '/'),
|
||||
annotation: [data.cLine, data.pLine].join('\n'),
|
||||
// `data.credits` is currently not included as its unclear for which tracks the individual credits apply
|
||||
|
|
Loading…
Reference in a new issue