Installation: Professional 2014 version 9.3.2 Staging/Test License
I have several custom order fields of different types.
Most of these fields are filled asynchrone via code, which works fine.
I'm having troubles with my custom order fields of type DateTime.
I don't have these fields in my order form, but they do change and are set to value '1-1-0001 00:00:00' which results in the database as '1970-1-1 00:00:00'.
Other custom fields with a different type are not altered when they are not in my order form post (for example: checkox)
When I add these date fields to my order form and fill them with the dates which are already in the database (trying a workaround here) the result is the same as when I do not have them in my form.
They get changed to '1-1-0001 00:00:00'.
When I implement the BeforeCustomFieldValueIsSet and AfterCustomFieldValueIsChanged notification subscribers the value of such an arg is the correct date value in the BeforeCustomFieldValueIsSet describer and the '1-1-0001 00:00:00' in the AfterCustomFieldValueIsChanged subscriber.
- The custom field is of type DateTime
- The beforeCustomFieldValueIsSetArgs.Value is of type object {System.DateTime} and has the correct date value
- The afterCustomFieldValueIsChangedArgs.Value is of type object {System.DateTime} and has the {1-1-0001 00:00:00} value
What the **** am I doing wrong here ?!?!
All other CustomOrderField types are behaving normally