diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 663db1f..c98fe38 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "jetbrains.resharper.globaltools": { - "version": "2025.3.0.4", + "version": "2025.3.1", "commands": [ "jb" ], diff --git a/test/TestBuildingBlocks/TimeExtensions.cs b/test/TestBuildingBlocks/TimeExtensions.cs index 8222994..21ec829 100644 --- a/test/TestBuildingBlocks/TimeExtensions.cs +++ b/test/TestBuildingBlocks/TimeExtensions.cs @@ -12,7 +12,7 @@ public static DateTimeOffset TruncateToWholeMilliseconds(this DateTimeOffset val // Because MongoDB does not store the UTC offset in the database, it cannot round-trip // values with a non-zero UTC offset. - DateTime dateTime = TruncateToWholeMilliseconds(value.DateTime); + DateTime dateTime = value.DateTime.TruncateToWholeMilliseconds(); return new DateTimeOffset(dateTime, TimeSpan.Zero); }