story-content: Fixed fictional dates not being UTC in chapter title fallback.
the build was successful

This commit is contained in:
2018-10-22 17:48:20 +02:00
parent f850e383b1
commit d2194347fd
@@ -16,7 +16,7 @@ module.exports = class {
if (chapter.title) {
title = chapter.title
} 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