diff --git a/lib/adapters/mysql.js b/lib/adapters/mysql.js index b27963e3..3b0ad279 100644 --- a/lib/adapters/mysql.js +++ b/lib/adapters/mysql.js @@ -130,7 +130,7 @@ MySQL.prototype.fromDatabase = function (model, data) { Object.keys(data).forEach(function (key) { var val = data[key]; if (props[key]) { - if (props[key].type.name === 'Date') { + if (props[key].type.name === 'Date' && val !== null) { val = new Date(val.toString().replace(/GMT.*$/, 'GMT')); } }