Work to get DateTimes for any time zone. I am using DateTimeOffset, a string and an XmlElement attribute. When I do this, I get the following error:
[InvalidOperationException: 'dateTime' is an invalid value for the XmlElementAttribute.DataType property. dateTime cannot be converted to System.String.]
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeat, Logical openModel, RecursionLimiter delimiter) +450
[InvalidOperationException: There is an error reflecting the type 'System.String'.]
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (TypeModel model, String ns, ImportContext context, String dataType, XmlAttributes a, Boolean repeat, Logical openModel, RecursionLimiter delimiter) +1621
System.Xml.Serialization.XmlReflectionImporter.ImportAccessorMapping (MemberMapping accessor, FieldModel model, XmlAttributes a, String ns, Type choiceIdentifierType, Boolean rpc, Boolean openModel, RecursionLimiter limiter) +8750
System.Xml.Serialization.XmlReflectionImporter.ImportFieldMapping (StructModel parent, FieldModel model, XmlAttributes a, String ns, Recursion limit constraint) +139
System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers (StructMapping map, StructModel model, Boolean openModel, String typeName, Recursion Constraint Limiter) +1273
[InvalidOperationException: There is an error reflecting the 'creationTimeX' property.] ...