@fantasypoints/nunjucks-filter-moment
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -16,9 +16,3 @@ let moment = require('moment'); | ||
if(value == "" || undefined) value = new Date(); | ||
var result = moment(value); | ||
if (format === "ISO") { | ||
result.toISOString(); | ||
} else { | ||
result.format(format); | ||
} | ||
return result; | ||
return moment(value).format(format); | ||
}); | ||
@@ -25,0 +19,0 @@ |
{ | ||
"name": "@fantasypoints/nunjucks-filter-moment", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
3267
104