dresende/node-orm — Issue #26: Date property cannot be handled with Postgre
Author: willow
Created: 2012-01-09 08:27:32+00:00
State: open

I have a Date property within my model. On an instance, it was set with `new Date()`. The model couldn't be saved with the following exception. Not sure if this is a problem on node-orm or node-postgre, I'm using node-postgre 0.5.4.

```
TypeError: Object Mon Jan 09 2012 02:14:19 GMT-0600 (CST) has no method 'replace'
at DBClient._insertRecord (/node_modules/orm/lib/databases/postgresql.js:226:32)
at DBClient.saveRecord (/node_modules/orm/lib/databases/postgresql.js:203:8)
at /node_modules/orm/lib/orm.js:384:12
at /node_modules/orm/lib/orm.js:461:14
at /node_modules/orm/lib/orm.js:442:14
at [object Object]. (/node_modules/orm/lib/validators.js:30:52)
at /node_modules/orm/lib/orm.js:463:36
at /node_modules/orm/lib/orm.js:442:14
at [object Object]. (/node_modules/orm/lib/validators.js:15:45)
at /node_modules/orm/lib/orm.js:463:36
```