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:
Daniel Siepmann 2023-01-17 07:17:01 +01:00
parent 3749892f59
commit da58b894a4
No known key found for this signature in database
GPG Key ID: 33D6629915560EF4

View File

@ -376,11 +376,11 @@ class Feed
}
if ($published != '') {
$item['created'] = $published;
$item['created'] = trim($published);
}
if ($updated != '') {
$item['edited'] = $updated;
$item['edited'] = trim($updated);
}
if (!$dryRun) {