function _date_feeds_get_default_timezone in Feeds 7.2
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 _date_feeds_get_default_timezone()
- date_feeds_set_target in mappers/
date.inc - Callback for setting date values.
File
- mappers/
date.inc, line 160 - On behalf implementation of Feeds mapping API for date.module.
Code
function _date_feeds_get_default_timezone(array $mapping) {
$mapping += array(
'timezone' => 'UTC',
);
if ($mapping['timezone'] === '__SITE__') {
return variable_get('date_default_timezone', 'UTC');
}
return $mapping['timezone'];
}