story-content: Fixed fictional dates not being UTC in chapter title fallback.
the build was successful
the build was successful
This commit is contained in:
@@ -16,7 +16,7 @@ module.exports = class {
|
|||||||
if (chapter.title) {
|
if (chapter.title) {
|
||||||
title = chapter.title
|
title = chapter.title
|
||||||
} else if (chapter.fictionalDate && chapter.fictionalDate.getUTCFullYear() > 1) {
|
} else if (chapter.fictionalDate && chapter.fictionalDate.getUTCFullYear() > 1) {
|
||||||
title = moment(chapter.fictionalDate).format("MMM D, YYYY")
|
title = moment.utc(chapter.fictionalDate).format("MMM D, YYYY")
|
||||||
}
|
}
|
||||||
|
|
||||||
return title
|
return title
|
||||||
|
|||||||
Reference in New Issue
Block a user