This commit is contained in:
harttle
2016-12-08 23:26:00 +08:00
parent 89636736a4
commit 2c0ba9bfd9
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ var filters = {
},
'date': function date(v, arg) {
if (v === 'now') v = new Date();
return strftime(v, arg);
return v instanceof Date ? strftime(v, arg) : '';
},
'default': function _default(v, arg) {
return v || arg;