Browse Source

story-content: Fixed fictional dates not being UTC in chapter title fallback.

1.0 1.0.10
Gisle Aune 6 years ago
parent
commit
d2194347fd
  1. 2
      marko/page/story-content/components/story-content-menu/component.js

2
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

Loading…
Cancel
Save