Skip to content

Commit

Permalink
Fixing timespans again
Browse files Browse the repository at this point in the history
  • Loading branch information
ayende committed Feb 5, 2013
1 parent b7aaa4d commit 506cfc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Raven.Abstractions/Linq/DynamicJsonObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public object TransformToValue(RavenJToken jToken)
return dateTimeOffset;
}
TimeSpan timeSpan;
if (TimeSpan.TryParseExact(s,"C", CultureInfo.InvariantCulture, out timeSpan))
if (TimeSpan.TryParseExact(s,"c", CultureInfo.InvariantCulture, out timeSpan))
{
return timeSpan;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public IEnumerable<AbstractField> CreateFields(string name, object value, Field.
if (value is TimeSpan)
{
var val = (TimeSpan)value;
yield return CreateFieldWithCaching(name, val.ToString("C",CultureInfo.InvariantCulture), storage,
yield return CreateFieldWithCaching(name, val.ToString("c",CultureInfo.InvariantCulture), storage,
indexDefinition.GetIndex(name, Field.Index.NOT_ANALYZED_NO_NORMS),termVector);
}
else if (value is DateTime)
Expand Down

0 comments on commit 506cfc0

Please sign in to comment.