From 027c1e69c4f61325523bc5f25929320fa028fc85 Mon Sep 17 00:00:00 2001 From: davyd Date: Sat, 6 Mar 2004 09:33:33 +0000 Subject: [PATCH] timezone corrections --- RSS1Writer.py | 2 +- RSS2Writer.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/RSS1Writer.py b/RSS1Writer.py index 678f98d..7d7ce17 100644 --- a/RSS1Writer.py +++ b/RSS1Writer.py @@ -22,7 +22,7 @@ class RSS1Writer: output += ' \n' output += cgi.escape(item.contents) output += '\n \n' - output += ' %s\n' % time.strftime('%Y-%m-%dT%H:%M:%S+00:00', time.gmtime(item.itemDate)) + output += ' %s\n' % time.strftime('%Y-%m-%dT%H:%M:%S+08:00', time.gmtime(item.itemDate)) output += '\n' return output diff --git a/RSS2Writer.py b/RSS2Writer.py index 07a7f35..f61d315 100644 --- a/RSS2Writer.py +++ b/RSS2Writer.py @@ -18,12 +18,11 @@ class RSS2Writer: output = '' output += '\n' output += ' %s: %s\n' % (item.blogTitle, item.itemTitle) -# output += ' %s\n' % item.itemURL output += ' %s\n' % item.itemURL output += ' \n' output += cgi.escape(item.contents) output += '\n \n' - output += '%s\n' % time.strftime('%a, %d %b %Y %H:%M:%S +0000', time.gmtime(item.itemDate)) + output += '%s\n' % time.strftime('%a, %d %b %Y %H:%M:%S +0800', time.gmtime(item.itemDate)) output += '\n' return output -- 2.20.1