Browse Source

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

master
Gisle Aune 5 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.characterName = characterName
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.editedDate = new Date(editedDate)
this.source = source

Loading…
Cancel
Save