From 8bfc0dad1449140af1b50b7af8eb05477da2e8cc Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Thu, 17 Jan 2019 21:12:05 +0100 Subject: [PATCH] api: Fixed fictionalDate being Jan 1, 1970 instead of null if none is set. --- rpdata/api/Comment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpdata/api/Comment.js b/rpdata/api/Comment.js index af20b18..bb02c2c 100644 --- a/rpdata/api/Comment.js +++ b/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