From: davyd Date: Sat, 7 Feb 2004 16:55:34 +0000 (+0000) Subject: Time Fix. Still needs work. X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=e20f77cf858089e8f241ee9b1197bba6d8968dec;p=planet-ucc.git Time Fix. Still needs work. --- diff --git a/XMLWriter.py b/XMLWriter.py index 80270b2..fdd95c2 100644 --- a/XMLWriter.py +++ b/XMLWriter.py @@ -96,7 +96,7 @@ class XHTMLWriter: output += '

\n' if item.imageURL: output += '%s\n' % (item.imageLink, item.imageURL, item.blogTitle) - output += '(%s)\n' % (item.itemURL ,time.strftime('%A %B %d, %Y %H:%M %Z', time.localtime(item.itemDate))) + output += '(%s)\n' % (item.itemURL ,time.strftime('%A %B %d, %Y %H:%M %Z', time.gmtime(item.itemDate))) output += '

\n' output += '

\n' output += item.contents @@ -140,7 +140,7 @@ class XHTMLWriter: output += '\n' output += '

\n' for date in self.planet: - output += '

%s

\n' % time.strftime('%A %B %d, %Y', time.localtime(date.planetDate)) + output += '

%s

\n' % time.strftime('%A %B %d, %Y', time.gmtime(date.planetDate)) for item in date.items: output += self.__write_item__(item) # see how many items we've written