protected function FeedsEntityProcessorPropertyDate::getDefaultTimezone in Feeds entity processor 7
Returns the timezone to be used as the default.
Parameters
array $mapping: The mapping array.
Return value
string The timezone to use as the default.
1 call to FeedsEntityProcessorPropertyDate::getDefaultTimezone()
- FeedsEntityProcessorPropertyDate::setValue in src/
Property/ FeedsEntityProcessorPropertyDate.php - Implements FeedsEntityProcessorPropertyInterface::setValue().
File
- src/
Property/ FeedsEntityProcessorPropertyDate.php, line 128 - Contains FeedsEntityProcessorPropertyDate.
Class
- FeedsEntityProcessorPropertyDate
- Handler for date property.
Code
protected function getDefaultTimezone(array $mapping) {
$mapping += array(
'timezone' => 'UTC',
);
if ($mapping['timezone'] === '__SITE__') {
return variable_get('date_default_timezone', 'UTC');
}
return $mapping['timezone'];
}