diff --git a/src/ng/filter/filters.js b/src/ng/filter/filters.js index d4f09581ee1b..3830e965ffec 100644 --- a/src/ng/filter/filters.js +++ b/src/ng/filter/filters.js @@ -192,6 +192,7 @@ function padNumber(num, digits, trim) { function dateGetter(name, size, offset, trim) { + offset = offset || 0; return function(date) { var value = date['get' + name](); if (offset > 0 || value > -offset)