From d29fad2eff6b79b7a8ee81cdc2e9a833bd41fbc7 Mon Sep 17 00:00:00 2001 From: Kelvin Del Monte Date: Mon, 12 Sep 2016 10:48:49 -0400 Subject: [PATCH] Prevent moment deprecation warning (#2089) --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index ce41023c..6e90ffc2 100644 --- a/lib/util.js +++ b/lib/util.js @@ -415,7 +415,7 @@ exports.convert = function (object, type) { return new Date(Number(match[1])); // parse number } else { - return moment(object).toDate(); // parse string + return moment(new Date(object)).toDate(); // parse string } } else {