Skip to content

Commit

Permalink
Issue #112: remove deprecated FeedsDateTimeElement and FeedsDateTime …
Browse files Browse the repository at this point in the history
…classes (#113)
  • Loading branch information
herbdool authored Jul 11, 2022
1 parent 514c404 commit 1c0147a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 462 deletions.
2 changes: 0 additions & 2 deletions feeds.module
Original file line number Diff line number Diff line change
Expand Up @@ -1687,8 +1687,6 @@ function feeds_autoload_info() {
'FeedsTermElement' => 'plugins/FeedsParser.inc',
'FeedsGeoTermElement' => 'plugins/FeedsParser.inc',
'FeedsEnclosure' => 'plugins/FeedsParser.inc',
'FeedsDateTimeElement' => 'plugins/FeedsParser.inc',
'FeedsDateTime' => 'plugins/FeedsParser.inc',
'FeedsPlugin' => 'plugins/FeedsPlugin.inc',
'FeedsMissingPlugin' => 'plugins/FeedsPlugin.inc',
'FeedsProcessor' => 'plugins/FeedsProcessor.inc',
Expand Down
2 changes: 1 addition & 1 deletion mappers/date.inc
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function _date_feeds_get_date_object($value, DateTimeZone $default_tz) {
return $value;
}

// Convert DateTime and FeedsDateTime.
// Convert DateTime.
if ($value instanceof DateTime) {
if (!$value->getTimezone() || !preg_match('/[a-zA-Z]/', $value->getTimezone()->getName())) {
$value->setTimezone($default_tz);
Expand Down
Loading

0 comments on commit 1c0147a

Please sign in to comment.