diff --git a/platypush/plugins/rss/__init__.py b/platypush/plugins/rss/__init__.py index 1ef908c7c8..1db8b34ee0 100644 --- a/platypush/plugins/rss/__init__.py +++ b/platypush/plugins/rss/__init__.py @@ -82,7 +82,9 @@ class RssPlugin(RunnablePlugin): t = var.get(varname) if t: - return dateutil.parser.isoparse(t) + if not isinstance(t, datetime.datetime): + t = dateutil.parser.isoparse(t) + return t return None