Properly handle feed item creation date with surrounding whitespace
Some feeds might have whitespace around the creation date. This can't be parsed by DateTimeFormat methods. Therefore the incoming creation date is trimmed to not contain any surrounding whitespace for proper handling. Relates: #12686
This commit is contained in:
parent
3749892f59
commit
da58b894a4
|
@ -376,11 +376,11 @@ class Feed
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($published != '') {
|
if ($published != '') {
|
||||||
$item['created'] = $published;
|
$item['created'] = trim($published);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($updated != '') {
|
if ($updated != '') {
|
||||||
$item['edited'] = $updated;
|
$item['edited'] = trim($updated);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$dryRun) {
|
if (!$dryRun) {
|
||||||
|
|
Loading…
Reference in a new issue