|
@ -409,7 +409,7 @@ exports.convert = function (object, type) { |
|
|
|
|
|
|
|
|
case 'number': |
|
|
case 'number': |
|
|
case 'Number': |
|
|
case 'Number': |
|
|
if (!isNaN(Date.parse(object))) { |
|
|
|
|
|
|
|
|
if (exports.isString(object) && !isNaN(Date.parse(object))) { |
|
|
return moment(object).valueOf(); |
|
|
return moment(object).valueOf(); |
|
|
} else { |
|
|
} else { |
|
|
return Number(object.valueOf()); |
|
|
return Number(object.valueOf()); |
|
|