timezone corrections
authordavyd <davyd>
Sat, 6 Mar 2004 09:33:33 +0000 (09:33 +0000)
committerdavyd <davyd>
Sat, 6 Mar 2004 09:33:33 +0000 (09:33 +0000)
RSS1Writer.py
RSS2Writer.py

index 678f98d..7d7ce17 100644 (file)
@@ -22,7 +22,7 @@ class RSS1Writer:
                output  +=      ' <description>\n'
                output  +=      cgi.escape(item.contents)
                output  +=      '\n </description>\n'
-               output  +=      ' <dc:date>%s</dc:date>\n' % time.strftime('%Y-%m-%dT%H:%M:%S+00:00', time.gmtime(item.itemDate))
+               output  +=      ' <dc:date>%s</dc:date>\n' % time.strftime('%Y-%m-%dT%H:%M:%S+08:00', time.gmtime(item.itemDate))
                output  +=      '</item>\n'
                return output
        
index 07a7f35..f61d315 100644 (file)
@@ -18,12 +18,11 @@ class RSS2Writer:
                output  =       ''
                output  +=      '<item>\n'
                output  +=      ' <title>%s: %s</title>\n' % (item.blogTitle, item.itemTitle)
-#              output  +=      ' <guid>%s</guid>\n' % item.itemURL
                output  +=      ' <link>%s</link>\n' % item.itemURL
                output  +=      ' <description>\n'
                output  +=      cgi.escape(item.contents)
                output  +=      '\n </description>\n'
-               output  +=      '<pubDate>%s</pubDate>\n' % time.strftime('%a, %d %b %Y %H:%M:%S +0000', time.gmtime(item.itemDate))
+               output  +=      '<pubDate>%s</pubDate>\n' % time.strftime('%a, %d %b %Y %H:%M:%S +0800', time.gmtime(item.itemDate))
                output  +=      '</item>\n'
                return output
        

UCC git Repository :: git.ucc.asn.au