diff --git a/functions/var/empty.js b/functions/var/empty.js index 8c3ffec7f6..b2e0d726fa 100644 --- a/functions/var/empty.js +++ b/functions/var/empty.js @@ -36,8 +36,11 @@ function empty(mixed_var) { return false; //} } + if(Object.prototype.toString.call(mixed_var) === '[object Date]') { + return false; + } return true; } return false; -} \ No newline at end of file +}