diff --git a/Orleans.Providers.MongoDB/Orleans.Providers.MongoDB.csproj b/Orleans.Providers.MongoDB/Orleans.Providers.MongoDB.csproj
index 27ed350..04492a3 100644
--- a/Orleans.Providers.MongoDB/Orleans.Providers.MongoDB.csproj
+++ b/Orleans.Providers.MongoDB/Orleans.Providers.MongoDB.csproj
@@ -15,7 +15,7 @@
Orleans OrleansProviders MongoDB
snupkg
net8.0
- 8.0.1
+ 8.0.2
diff --git a/Orleans.Providers.MongoDB/StorageProviders/JsonBsonConverter.cs b/Orleans.Providers.MongoDB/StorageProviders/JsonBsonConverter.cs
index b7d47c7..cca0a48 100644
--- a/Orleans.Providers.MongoDB/StorageProviders/JsonBsonConverter.cs
+++ b/Orleans.Providers.MongoDB/StorageProviders/JsonBsonConverter.cs
@@ -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
{