Download

StructToJsonObjectString FDateTime is not formatted as ISO-8601?

I use FJsonObjectConverter::UStructToJsonObjectString to convert my struct to a JSonstring. My Struct has a field of type FDateTime. However, the output does not contain an ISO-8601 formatted datetime.

What i expected:


0001-01-01T00:00:00

what i get


0001.01.01-00.00.00

it seems i can solve that by using the callback but that isn’t exactly “central”. Anything i can do, besides wrapping this to get a correct result? (honestly, not formatting a DateTime as ISO-8601 in json looks like a bug to me)