Skip to content

Commit d27b2f5

Browse files
authored
Merge db852cf into 9a2f364
2 parents 9a2f364 + db852cf commit d27b2f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsonApiDotNetCore.Annotations/Resources/Internal/RuntimeTypeConverter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static class RuntimeTypeConverter
4646
return value;
4747
}
4848

49-
string? stringValue = value.ToString();
49+
string? stringValue = value is IFormattable cultureAwareValue ? cultureAwareValue.ToString(null, cultureInfo) : value.ToString();
5050

5151
if (string.IsNullOrEmpty(stringValue))
5252
{

0 commit comments

Comments
 (0)