Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Really set the date time handling globally

  • Loading branch information...
commit 0536b1bf1b636379909afa2b4003616e9889323b 1 parent 2be9a89
@ayende ayende authored
View
2  Imports/Newtonsoft.Json/Src/Newtonsoft.Json/JsonReader.cs
@@ -254,7 +254,7 @@ protected JsonReader()
_currentState = State.Start;
_stack = new List<JsonPosition>(4);
_dateTimeZoneHandling = DateTimeZoneHandling.RoundtripKind;
- _dateParseHandling = DateParseHandling.DateTime;
+ _dateParseHandling = DateParseHandling.None;
CloseInput = true;
}
View
15 Raven.Smuggler/SmugglerApi.cs
@@ -31,10 +31,7 @@ protected override RavenJArray GetIndexes(int totalCount)
{
RavenJArray indexes = null;
var request = CreateRequest("/indexes?pageSize=" + smugglerOptions.BatchSize + "&start=" + totalCount);
- request.ExecuteRequest(reader => indexes = RavenJArray.Load(new JsonTextReader(reader)
- {
- DateParseHandling = DateParseHandling.None
- }));
+ request.ExecuteRequest(reader => indexes = RavenJArray.Load(new JsonTextReader(reader)));
return indexes;
}
@@ -90,10 +87,7 @@ protected override RavenJArray GetDocuments(Guid lastEtag)
{
RavenJArray documents = null;
var request = CreateRequest("/docs?pageSize=" + smugglerOptions.BatchSize + "&etag=" + lastEtag);
- request.ExecuteRequest(reader => documents = RavenJArray.Load(new JsonTextReader(reader)
- {
- DateParseHandling = DateParseHandling.None
- }));
+ request.ExecuteRequest(reader => documents = RavenJArray.Load(new JsonTextReader(reader)));
return documents;
}
catch (Exception e)
@@ -113,10 +107,7 @@ protected override Guid ExportAttachments(JsonTextWriter jsonWriter, Guid lastEt
{
RavenJArray attachmentInfo = null;
var request = CreateRequest("/static/?pageSize=" + smugglerOptions.BatchSize + "&etag=" + lastEtag);
- request.ExecuteRequest(reader => attachmentInfo = RavenJArray.Load(new JsonTextReader(reader)
- {
- DateParseHandling = DateParseHandling.None
- }));
+ request.ExecuteRequest(reader => attachmentInfo = RavenJArray.Load(new JsonTextReader(reader)));
if (attachmentInfo.Length == 0)
{
Please sign in to comment.
Something went wrong with that request. Please try again.