fix(webui): display release date without timezone adjustment (#875)

this is the same fix as d343740f30, but applied to the series view
instead of an individual book.

if the first issue of a series was released on January 1 applying a negative timezone offset will
display the previous year.
This commit is contained in:
Neil Gentleman 2022-04-29 02:04:26 -07:00 committed by GitHub
parent 7c049adf8b
commit d0da11f23b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@
<v-tooltip right>
<template v-slot:activator="{ on }">
<span v-on="on">{{
new Intl.DateTimeFormat($i18n.locale, {year: 'numeric'}).format(new Date(series.booksMetadata.releaseDate))
new Intl.DateTimeFormat($i18n.locale, {year: 'numeric', timeZone: 'UTC'}).format(new Date(series.booksMetadata.releaseDate))
}}</span>
</template>
{{ $t('browse_series.earliest_year_from_release_dates') }}