Skip to content

Commit

Permalink
Restoring date handling that was removed by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
ayende committed Feb 5, 2013
1 parent 6f8b4f0 commit 2cff72f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Raven.Client.Lightweight/Document/AbstractDocumentQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,14 @@ private string TransformToEqualValue(WhereParams whereParams)
{
return (bool)whereParams.Value ? "true" : "false";
}
if (type == typeof(DateTime))
{
var val = (DateTime)whereParams.Value;
var s = val.ToString(Default.DateTimeFormatsToWrite);
if (val.Kind == DateTimeKind.Utc)
s += "Z";
return s;
}
if (type == typeof(DateTimeOffset))
{
var val = (DateTimeOffset)whereParams.Value;
Expand Down

0 comments on commit 2cff72f

Please sign in to comment.