Browse Source

api: Fixed fictionalDate being Jan 1, 1970 instead of null if none is set.

master
Gisle Aune 6 years ago
parent
commit
8bfc0dad14
  1. 2
      rpdata/api/Comment.js

2
rpdata/api/Comment.js

@ -18,7 +18,7 @@ class Comment {
this.author = author this.author = author
this.characterName = characterName this.characterName = characterName
this.character = character != null ? CommentCharacter.fromData(character) : null this.character = character != null ? CommentCharacter.fromData(character) : null
this.fictionalDate = new Date(fictionalDate)
this.fictionalDate = fictionalDate != null ? new Date(fictionalDate) : null
this.createdDate = new Date(createdDate) this.createdDate = new Date(createdDate)
this.editedDate = new Date(editedDate) this.editedDate = new Date(editedDate)
this.source = source this.source = source

Loading…
Cancel
Save