ayende/ravendb — pull request #219 by mj1856 (2013-01-03 01:18:32+00:00)
Title: JTokenType.Date could be for a DateTimeOffset too

If you just assign a dto to a metadata value, it will get caught here (on http) and fail.

I was able to work around this bug by making sure to use RavenJToken.FromObject(dto), which doesn't catch on this for some reason.

Let me know if you want a failing test to demonstrate, but this should be a fairly safe change either way.