diff -u b/plugins/FeedsParser.inc b/plugins/FeedsParser.inc --- b/plugins/FeedsParser.inc +++ b/plugins/FeedsParser.inc @@ -505,7 +505,7 @@ if (!date_timezone_is_valid($use_start->getTimezone()->getName())) { $use_start->setTimezone(new DateTimeZone(variable_get('date_default_timezone'))); } - $db_tz = date_get_timezone_db($info['settings']['tz_handling'], $use_start->getTimezone()->getName()); + $db_tz = new DateTimeZone(date_get_timezone_db($info['settings']['tz_handling'], $use_start->getTimezone()->getName())); } if ($use_end) { $use_end = $use_end->merge($temp); @@ -513,7 +513,7 @@ $use_end->setTimezone(new DateTimeZone(variable_get('date_default_timezone'))); } if (!$db_tz) { - $db_tz = date_get_timezone_db($info['settings']['tz_handling'], $use_end->getTimezone()->getName()); + $db_tz = new DateTimeZone(date_get_timezone_db($info['settings']['tz_handling'], $use_end->getTimezone()->getName())); } } if (!$db_tz) { @@ -605,11 +605,6 @@ } } - // If the timezone is null, use default timezone. - if (!$tz) { - $tz = new DateTimeZone(variable_get('date_default_timezone')); - } - // PHP < 5.3 doesn't like the GMT- notation for parsing timezones. $time = str_replace('GMT-', '-', $time); $time = str_replace('GMT+', '+', $time);