coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.72k stars 240 forks source link

Error on syncing #10

Closed rweng closed 14 years ago

rweng commented 14 years ago

Hi, I got the following error when syncing: Uncaught TypeError: Object 2010-09-27T16:57:00Z has no method 'getTime'.

The same error occured, if I supplied a timestamp instead. The problem seemed to be that the json is only parsed in a string not a Date. So I inserted this.

But maybe there is a better place for the conversion.

Regards, Robin

zefhemel commented 14 years ago

Thanks! I integrated it into the master.