From 15b40d7ea5c686a5bcc9c7c6a45d75ab78033abc Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sun, 25 Jun 2006 15:26:41 +0000
Subject: [PATCH] - Patch #70725 by ahoeben: recognized more Atom dates.

---
 modules/aggregator.module            | 2 ++
 modules/aggregator/aggregator.module | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/modules/aggregator.module b/modules/aggregator.module
index e9fe10d0259f..02c7afc3efe2 100644
--- a/modules/aggregator.module
+++ b/modules/aggregator.module
@@ -886,6 +886,8 @@ function aggregator_parse_feed(&$data, $feed) {
     else if ($item['ISSUED']) $date = $item['ISSUED'];                     // Atom XML
     else if ($item['CREATED']) $date = $item['CREATED'];                   // Atom XML
     else if ($item['MODIFIED']) $date = $item['MODIFIED'];                 // Atom XML
+    else if ($item['PUBLISHED']) $date = $item['PUBLISHED'];               // Atom XML
+    else if ($item['UPDATED']) $date = $item['UPDATED'];                   // Atom XML
     else $date = 'now';
 
     $timestamp = strtotime($date); // As of PHP 5.1.0, strtotime returns FALSE on failure instead of -1.
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index e9fe10d0259f..02c7afc3efe2 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -886,6 +886,8 @@ function aggregator_parse_feed(&$data, $feed) {
     else if ($item['ISSUED']) $date = $item['ISSUED'];                     // Atom XML
     else if ($item['CREATED']) $date = $item['CREATED'];                   // Atom XML
     else if ($item['MODIFIED']) $date = $item['MODIFIED'];                 // Atom XML
+    else if ($item['PUBLISHED']) $date = $item['PUBLISHED'];               // Atom XML
+    else if ($item['UPDATED']) $date = $item['UPDATED'];                   // Atom XML
     else $date = 'now';
 
     $timestamp = strtotime($date); // As of PHP 5.1.0, strtotime returns FALSE on failure instead of -1.
-- 
GitLab