Closed (duplicate)
Project:
Migrate Extras
Version:
7.x-2.0-beta1
Component:
CCK
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2011 at 19:50 UTC
Updated:
4 Mar 2011 at 00:23 UTC
I have read through the documentation and it does appear that CCK Date fields are supported, but I'm not sure what syntax to use. A typical field is imported like this:
$this->addFieldMapping('field_foo', 'bar')
->description(t('Mapping bar in source to field_foo in destination'));
In my case, bar is a date value stored in a MySQL database table and field_foo is a Date field found in the content type that I'm importing to.
I understand that Date fields have a value and I need to map to that, but I have no idea what syntax to use. Any help would be much, much appreciated.
Thanks!
Comments
Comment #1
OliverMcc commentedlooking for same, thanks
Comment #2
somanyfish commentedI wound up using this code for each of my date fields:
I'm not happy with it, but it works so I'm going with it for now.
Comment #3
mikeryanDate support is indeed missing from the D7 branch, let's track that at #1021076: Support for date module in Drupal 7.