From 5189741c7b01e26e8a38a95fdcf702afbf7ed52f Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 2 Aug 2016 11:31:17 +0200 Subject: [PATCH] Fix tag name for timestamp --- bridges/BastaBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/BastaBridge.php b/bridges/BastaBridge.php index 53d1017..0dd0252 100644 --- a/bridges/BastaBridge.php +++ b/bridges/BastaBridge.php @@ -17,7 +17,7 @@ class BastaBridge extends BridgeAbstract{ $item = new \Item(); $item->title = $element->find('title', 0)->innertext; $item->uri = $element->find('guid', 0)->plaintext; - $item->timestamp = strtotime($element->find('pubDate', 0)->plaintext); + $item->timestamp = strtotime($element->find('dc:date', 0)->plaintext); $item->content = $this->file_get_html($item->uri)->find('div.texte', 0)->innertext; $this->items[] = $item; $limit++;