From d2194347fd55d20b68ca3c30965d3ee66784bb6d Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Mon, 22 Oct 2018 17:48:20 +0200 Subject: [PATCH] story-content: Fixed fictional dates not being UTC in chapter title fallback. --- .../story-content/components/story-content-menu/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marko/page/story-content/components/story-content-menu/component.js b/marko/page/story-content/components/story-content-menu/component.js index 6f81c47..bc5339d 100644 --- a/marko/page/story-content/components/story-content-menu/component.js +++ b/marko/page/story-content/components/story-content-menu/component.js @@ -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