DateTimeFieldMapping plugin supports timestamp field, but never assigns a value to it.
Observed behavior:
This line
if (($field_type == "datetime" || $field_type == "daterange" || $field_type == "daterange_timezone" || $field_type == "smartdate") && ($field_value != 0)) {
excludes the timestamp field type, and does nothing if the target field type is not one of those named.
Proposed resolution:
Convert the value to a timestamp and assign it to the field.
Issue fork webform_content_creator-3588045
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
aaronbaumanNot clear to me if or how this worked in previous versions, but seems to be broken since the plugin framework was introduced.
Comment #4
sovimi commentedHi, I tested the issue and can confirm that it occurs in the following scenario:
I can also confirm that the proposed fix resolves the issue successfully, as it now imports the time as it was in the webform. Thank you.
Comment #5
sovimi commentedComment #6
sara_asb commentedThank you both for your work on this issue.
It has now been committed and released on 4.0.14