geddy / model

Datastore-agnostic ORM in JavaScript
265 stars 55 forks source link

Datetime fields return Invalid Date #176

Closed wstucco closed 10 years ago

wstucco commented 10 years ago

With model version 0.5.8 datetime fields that worked before are now null (Invalid Date).
If you run the tests, they fail on line 69 of integration/adapters/shared.js because item.createdAt is null (Invalid Date) and the query returns undefined, instead of the correct record.

mde commented 10 years ago

Thanks for catching this. The cause was a bad update in the Utilities module. A fix has been pushed to NPM, utilities@0.0.34.

wstucco commented 10 years ago

I came here to write just that!
Thanks for the quick fix!

mde commented 10 years ago

Thanks for catching this one. Much appreciated.