Merge pull request #1116 from yileicn/master

optimize ConvertToString
This commit is contained in:
Nick Yi 2025-08-01 13:51:51 +08:00 committed by GitHub
commit b8b1eece09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,6 +122,11 @@ public static class StringExtensions
return s;
}
if (value is DateTime d)
{
return d.ToString("o");
}
if (value is JsonElement elem
&& elem.ValueKind == JsonValueKind.String)
{