Skip to content
Snippets Groups Projects
Commit 3bd73430 authored by drothstein's avatar drothstein Committed by Chris Leppanen
Browse files

Issue #1728634 by David_Rothstein: Fixed User and node 'created' dates (from...

Issue #1728634 by David_Rothstein: Fixed User and node 'created' dates (from feeds_to_unixtime()) default to the wrong timezone.
parent 189297db
No related branches found
No related tags found
No related merge requests found
...@@ -746,7 +746,7 @@ function feeds_to_unixtime($date, $default_value) { ...@@ -746,7 +746,7 @@ function feeds_to_unixtime($date, $default_value) {
if (is_numeric($date)) { if (is_numeric($date)) {
return $date; return $date;
} }
elseif (is_string($date)) { elseif (is_string($date) && !empty($date)) {
$date = new FeedsDateTimeElement($date); $date = new FeedsDateTimeElement($date);
return $date->getValue(); return $date->getValue();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment