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