From f4a7a2c4e9bc17a30a4d7b8bbd21ef5c84bf17c9 Mon Sep 17 00:00:00 2001 From: Phil Corbett Date: Sat, 29 Jun 2013 13:11:09 -0400 Subject: [PATCH] Update jsonDate.js return empty string if null data --- jsonDate.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jsonDate.js b/jsonDate.js index 8709a3e..2ccedbc 100644 --- a/jsonDate.js +++ b/jsonDate.js @@ -17,6 +17,10 @@ filters.filter('jsonDate', function() { return; } + if (!input) { + return ''; + } + var date = new Date(parseInt(input.substr(6))); // John Pedrie added Moment.js support