pubdate/pubDate
This commit is contained in:
@ -4,6 +4,8 @@
|
|||||||
Version 2.0-beta2 ()
|
Version 2.0-beta2 ()
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* RSS importer accepts pubDate in addition to pubdate element.
|
||||||
|
|
||||||
* Upgrader in Dashboard can be disabled, returns error message when
|
* Upgrader in Dashboard can be disabled, returns error message when
|
||||||
URL not accessible
|
URL not accessible
|
||||||
|
|
||||||
|
@ -94,6 +94,9 @@ class Serendipity_Import_Generic extends Serendipity_Import {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$entry['title'] = $this->decode($item['title']);
|
$entry['title'] = $this->decode($item['title']);
|
||||||
|
if (!isset($item['pubdate']) && isset($item['pubDate'])) {
|
||||||
|
$item['pubdate'] = $item['pubDate'];
|
||||||
|
}
|
||||||
$entry['timestamp'] = $this->decode(strtotime(isset($item['pubdate']) ? $item['pubdate'] : $item['dc:date']));
|
$entry['timestamp'] = $this->decode(strtotime(isset($item['pubdate']) ? $item['pubdate'] : $item['dc:date']));
|
||||||
if ($entry['timestamp'] == -1) {
|
if ($entry['timestamp'] == -1) {
|
||||||
// strtotime does not seem to parse ISO 8601 dates
|
// strtotime does not seem to parse ISO 8601 dates
|
||||||
|
Reference in New Issue
Block a user