From daf3e65622fd718ed5f221e18d1c8d7bd4aac56b Mon Sep 17 00:00:00 2001 From: Alexander Wunschik Date: Sat, 29 Oct 2016 21:55:35 +0200 Subject: [PATCH] fixed conversion from moment to ISODate --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 55673cbd..9ced5862 100644 --- a/lib/util.js +++ b/lib/util.js @@ -470,7 +470,7 @@ exports.convert = function (object, type) { return new Date(Number(match[1])).toISOString(); // parse number } else { - return new Date(object).toISOString(); // parse string + return moment(object).format(); // ISO 8601 } } else {