Browse Source

fix date wonk

master 1.7.5
Gisle Aune 2 years ago
parent
commit
fe44300c0a
  1. 2
      marko/page/story-content/components/edit-comment-modal/component.js

2
marko/page/story-content/components/edit-comment-modal/component.js

@ -31,7 +31,7 @@ module.exports = class {
let fictionalDate = new Date(comment.fictionalDate) let fictionalDate = new Date(comment.fictionalDate)
if (comment.fictionalDate && !Number.isNaN(fictionalDate.getTime()) && fictionalDate.getTime() !== 0) { if (comment.fictionalDate && !Number.isNaN(fictionalDate.getTime()) && fictionalDate.getTime() !== 0) {
fictionalDate = moment(fictionalDate).format("MMM D, YYYY")
fictionalDate = moment.utc(fictionalDate).format("MMM D, YYYY")
} else { } else {
fictionalDate = "" fictionalDate = ""
} }

Loading…
Cancel
Save