Skip to content

Commit

Permalink
Time component is written if only milliseconds. Closes #69.
Browse files Browse the repository at this point in the history
  • Loading branch information
hisystems committed Sep 12, 2012
1 parent 0a14e43 commit 5c28145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SQL/Serializers/Serializer.cs
Expand Up @@ -1185,7 +1185,7 @@ public virtual string SerializeDateTimeValue(DateTime dateTime)
else
dateTimeString = dateTime.ToString("yyyy-MM-dd");

if (dateTime.Hour != 0 || dateTime.Minute != 0 || dateTime.Second != 0)
if (dateTime.Hour != 0 || dateTime.Minute != 0 || dateTime.Second != 0 || dateTime.Millisecond != 0)
dateTimeString += " " + dateTime.ToString("HH:mm:ss.fff");

return dateTimeString;
Expand Down

0 comments on commit 5c28145

Please sign in to comment.