We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e34e932 commit fa08f93Copy full SHA for fa08f93
test/TestBuildingBlocks/TimeExtensions.cs
@@ -12,7 +12,7 @@ public static DateTimeOffset TruncateToWholeMilliseconds(this DateTimeOffset val
12
// Because MongoDB does not store the UTC offset in the database, it cannot round-trip
13
// values with a non-zero UTC offset.
14
15
- DateTime dateTime = TruncateToWholeMilliseconds(value.DateTime);
+ DateTime dateTime = value.DateTime.TruncateToWholeMilliseconds();
16
return new DateTimeOffset(dateTime, TimeSpan.Zero);
17
}
18
0 commit comments