csainty / node-raven

RavenDB client for Node

Home Page:csainty.github.com/node-raven

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DateTime serialization

csainty opened this issue · comments

JSON.stringify() is producing dates in the format 2012-05-24T13:37.1337Z where RavenDb prefers more precision 2012-05-24T13:37.1337133

While RavenDB is being updated to support both, investigate whether there is a way to change the format in JSON.stringify

is this still an issue after RavenDB 2.0

Doesn't look like it is a problem any more, from memory it was fixed around the I created this issue, but wasn't in the release ravendb builds yet.

I added a test case to make sure you can work with dates. f296f1d
It doesn't automatically parse the date when loading the document, but that could be investigated with some pattern matching or metadata.