From 0fd77437b75089236b1d48b6b371247518fc5549 Mon Sep 17 00:00:00 2001 From: Eric Gillingham Date: Wed, 16 Oct 2013 15:00:39 -0700 Subject: [PATCH] Fix typo in moment conversion --- src/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index 5bf4fd16..3d0e6396 100644 --- a/src/util.js +++ b/src/util.js @@ -171,7 +171,7 @@ util.convert = function convert(object, type) { return moment(object.valueOf()); } else if (moment.isMoment(object)) { - return moment(moment); + return moment(object); } if (util.isString(object)) { match = ASPDateRegex.exec(object);