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