Skip to content

Commit

Permalink
State serialization: DateTime precision increased
Browse files Browse the repository at this point in the history
  • Loading branch information
NorekZ authored Mar 5, 2024
1 parent 1118704 commit cd9d50c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Orleans.Providers.MongoDB/Orleans.Providers.MongoDB.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PackageTags>Orleans OrleansProviders MongoDB</PackageTags>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<TargetFrameworks>net8.0</TargetFrameworks>
<Version>8.0.1</Version>
<Version>8.0.2</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ public static BsonValue ToBson(this JToken source)

if (value is DateTime dateTime)
{
return dateTime.ToString("yyyy-MM-ddTHH:mm:ssK");
return dateTime.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFFFK");
}
else if (value is DateTimeOffset dateTimeOffset)
{
return dateTimeOffset.UtcDateTime.ToString("yyyy-MM-ddTHH:mm:ssK");
return dateTimeOffset.UtcDateTime.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFFFK");
}
else
{
Expand Down

0 comments on commit cd9d50c

Please sign in to comment.