From 39fc94bc6550d78d4b64dcbcacc633f8f4ed7a53 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Mon, 27 Nov 2017 16:29:12 -0500 Subject: [PATCH] Add support for Feeds Tamper plugin: Unix timestamp to date. --- modules/farm/farm_import/farm_import.module | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/farm/farm_import/farm_import.module b/modules/farm/farm_import/farm_import.module index cc63ff67..be38b982 100644 --- a/modules/farm/farm_import/farm_import.module +++ b/modules/farm/farm_import/farm_import.module @@ -168,6 +168,14 @@ function farm_import_feeds_tamper_plugin($entity_type, $bundle, $source, $plugin $settings = array(); break; + // Unix timestamp to date. + case 'timetodate': + $description = 'Unix timestamp to Date'; + $settings = array( + 'date_format' => 'Y-m-d', + ); + break; + // Empty defaults. default: $description = '';