async-validate
Advanced tools
Comparing version 0.1.12 to 0.1.13
@@ -21,3 +21,4 @@ var util = require('util'); | ||
} | ||
var dt = !rule.format ? moment(new Date(value)) : moment(value, rule.format); | ||
var mmt = rule.local ? moment : moment.utc; | ||
var dt = !rule.format ? mmt(new Date(value)) : mmt(value, rule.format); | ||
//console.log('value %s', value); | ||
@@ -24,0 +25,0 @@ //console.log('format %s', rule.format); |
{ | ||
"name": "async-validate", | ||
"description": "Asynchronous validation for object properties.", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"author": "muji <noop@xpm.io>", | ||
@@ -6,0 +6,0 @@ "repository": { |
75359
1742