dresende/node-orm — Issue #39: problem about date format in mysql
Author: madduo
Created: 2012-02-21 01:29:07+00:00
State: open

I'm using orm on window7, with mysql5 and node 0.6.10.
when i run examples/example.js, errors out:

Error: Incorrect datetime value: '2012-02-21T01:18:32.880Z' for column 'created' at row 1

it's format error, mysql date format is '0000-00-00 00:00:00'.
_getData method use toJSON process date object in orm.js, it's '2012-02-20T13:44:49.053Z'