Created
October 10, 2016 17:30
-
-
Save heddn/00f80f1ac388cd579bb8d142a4fe560f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- field_date: field_date | |
+ field_date: | |
+ plugin: iterator | |
+ source: field_date | |
+ process: | |
+ value: value | |
+ end_value: value2 |
You might have to use the data_format process plugin to reformat the start and end dates to the proper format for the destination.
That works! Updated my code above.
One last issue I'm having: No matter what I try with from_timezone
and to_timezone
, and with or without -0800
(Pacfiic Standard Time) appended on the end of the CSV values, it always takes seems to add 4 hours.
@heddn please let me know if you have any timezone tips. Thanks for your help.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's an example tested on Drupal 8.4.5 that imports start and end times, and adds 4 hours in the process.
And here's a sample row from my CSV: