|
@ -415,7 +415,7 @@ exports.convert = function (object, type) { |
|
|
return new Date(Number(match[1])); // parse number
|
|
|
return new Date(Number(match[1])); // parse number
|
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
return moment(object).toDate(); // parse string
|
|
|
|
|
|
|
|
|
return moment(new Date(object)).toDate(); // parse string
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|