[pLog-svn] r2409 - plog/branches/plog-1.0.2/templates/rss

pwestbro at devel.plogworld.net pwestbro at devel.plogworld.net
Sat Aug 13 06:32:39 GMT 2005


Author: pwestbro
Date: 2005-08-13 06:32:37 +0000 (Sat, 13 Aug 2005)
New Revision: 2409

Modified:
   plog/branches/plog-1.0.2/templates/rss/atom.template
   plog/branches/plog-1.0.2/templates/rss/rss090.template
Log:
Change the rss 0.90 and atom feed to report the dates as GMT.  The next
checkin that I will make will change the dates to be local time, with the
time zone offset

This is bug http://bugs.plogworld.net/view.php?id=442


Modified: plog/branches/plog-1.0.2/templates/rss/atom.template
===================================================================
--- plog/branches/plog-1.0.2/templates/rss/atom.template	2005-08-11 07:24:41 UTC (rev 2408)
+++ plog/branches/plog-1.0.2/templates/rss/atom.template	2005-08-13 06:32:37 UTC (rev 2409)
@@ -3,7 +3,7 @@
 <title>{$blog->getBlog()|escape}</title> 
 <link rel="alternate" type="text/html" href="{$url->blogLink()}" /> 
 {assign var="newestDate" value=$posts[0]->getDateObject()} 
-<modified>{$locale->formatDate($newestDate, "%Y-%m-%dT%H:%M:%SZ")}</modified> 
+<modified>{$locale->formatDateGMT($newestDate, "%Y-%m-%dT%H:%M:%S-00:00")}</modified> 
 <tagline>{$blog->getAbout()|escape}</tagline> 
 <generator url="http://www.plogworld.net/" version="1.0.1">pLog</generator> 
 {assign var="blogOwner" value=$posts[0]->getUserInfo()} 
@@ -14,9 +14,9 @@
  <title>{$post->getTopic()|escape}</title> 
  <link rel="alternate" type="text/html" href="{$url->postPermalink($post)}" /> 
  {assign var="postDate" value=$post->getDateObject()} 
- <modified>{$postDate->getW3Date()}</modified> 
- <issued>{$locale->formatDate($postDate, "%Y-%m-%dT%H:%M:%S")}</issued> 
- <created>{$locale->formatDate($postDate, "%Y-%m-%dT%H:%M:%SZ")}</created> 
+ <modified>{$locale->formatDateGMT($postDate, "%Y-%m-%dT%H:%M:%S-00:00")}</modified> 
+ <issued>{$locale->formatDateGMT($postDate, "%Y-%m-%dT%H:%M:%S-00:00")}</issued> 
+ <created>{$locale->formatDateGMT($postDate, "%Y-%m-%dT%H:%M:%S-00:00")}</created> 
  <summary type="text/plain">{$post->getText()|strip_tags|truncate:200:" ..."|escape:"html"}</summary> 
  <author> 
  {assign var="postOwner" value=$post->getUserInfo()} 

Modified: plog/branches/plog-1.0.2/templates/rss/rss090.template
===================================================================
--- plog/branches/plog-1.0.2/templates/rss/rss090.template	2005-08-11 07:24:41 UTC (rev 2408)
+++ plog/branches/plog-1.0.2/templates/rss/rss090.template	2005-08-13 06:32:37 UTC (rev 2409)
@@ -16,8 +16,9 @@
    <description>{$post->getText()|escape}</description>
    <link>{$url->postPermalink($post)}</link>
    {assign var="postDate" value=$post->getDateObject()}
-   <pubDate>{$postDate->getUnixDate()|date_format:"%a, %d %b %Y %H:%M:%S"} +0000</pubDate>   
+   <pubDate>{$locale->formatDateGMT($postDate, "%a, %d %b %Y %H:%M:%S GMT")}</pubDate>   
   </item>
   {/foreach}
 </rdf:RDF>
-
+
+




More information about the pLog-svn mailing list