- π¬π§United Kingdom natts London
Just to add to this, for me, I was just migrating into a simple time field, not a time range, from an external MySQL table via CSV.
So I was able to output the time field in my SELECT query using MySQL's TIME_TO_SEC() function (which outputs an integer between 0 and 86399, representing the seconds from midnight), and then my migration YAML just needed to be:
... source: ... fields: - name: time - label: 'Time' ... process: field_time/value: time ...
- πΊπΈUnited States todea
Just an fyi, I used the following to move from the timefield module to time_field.
... source: plugin: d7_node_complete node_type: page ... process: field_hours_monday: - plugin: sub_process source: field_hours_monday process: from: value to: value2 ...