Преглед изворни кода

Replaced use of gmdate() with date() passing it DATE_RSS constant to produce a valid local date - fixes ZF-6614

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18265 44c647ce-9c0f-0410-b52a-842ac1e357ba
padraic пре 16 година
родитељ
комит
c7f395b79b
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      library/Zend/Feed/Rss.php

+ 3 - 3
library/Zend/Feed/Rss.php

@@ -147,11 +147,11 @@ class Zend_Feed_Rss extends Zend_Feed_Abstract
         $channel->appendChild($description);
 
         $pubdate = isset($array->lastUpdate) ? $array->lastUpdate : time();
-        $pubdate = $this->_element->createElement('pubDate', gmdate('r', $pubdate));
+        $pubdate = $this->_element->createElement('pubDate', date(DATE_RSS, $pubdate));
         $channel->appendChild($pubdate);
 
         if (isset($array->published)) {
-            $lastBuildDate = $this->_element->createElement('lastBuildDate', gmdate('r', $array->published));
+            $lastBuildDate = $this->_element->createElement('lastBuildDate', date(DATE_RSS, $array->published));
             $channel->appendChild($lastBuildDate);
         }
 
@@ -425,7 +425,7 @@ class Zend_Feed_Rss extends Zend_Feed_Abstract
             }
 
             $pubdate = isset($dataentry->lastUpdate) ? $dataentry->lastUpdate : time();
-            $pubdate = $this->_element->createElement('pubDate', gmdate('r', $pubdate));
+            $pubdate = $this->_element->createElement('pubDate', date(DATE_RSS, $pubdate));
             $item->appendChild($pubdate);
 
             if (isset($dataentry->category)) {