Permalink
Browse files

changed date to day

  • Loading branch information...
1 parent 84bc53d commit 3a6492370230a56d6b262be44e0dd42fde634663 @craiggwilson craiggwilson committed Jul 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 source/MongoDB/Util/JsonFormatter.cs
@@ -44,7 +44,7 @@ public static string SerializeForServerSide(object value)
if (value is DateTime)
{
DateTime d = (DateTime)value;
- sb.AppendFormat("new Date({0},{1},{2},{3},{4},{5},{6})", d.Year, d.Month, d.Date, d.Hour, d.Minute, d.Second, d.Millisecond);
+ sb.AppendFormat("new Date({0},{1},{2},{3},{4},{5},{6})", d.Year, d.Month, d.Day, d.Hour, d.Minute, d.Second, d.Millisecond);
}
else
SerializeType(value, sb);

0 comments on commit 3a64923

Please sign in to comment.