X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=XMLWriter.py;h=6f39119e01a3a0caa8690e6d1664af9922502e55;hb=1eee04708eb32a4eaa15adbca4b4013f1efb7e6c;hp=fdd95c2289f23744ccdb17c53d4c696af3a92a80;hpb=e20f77cf858089e8f241ee9b1197bba6d8968dec;p=planet-ucc.git diff --git a/XMLWriter.py b/XMLWriter.py index fdd95c2..6f39119 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.gmtime(item.itemDate))) + output += '(%s)\n' % (item.itemURL ,time.strftime('%A %B %d, %Y %H:%M AWST', time.localtime(item.itemDate))) output += '

\n' output += '

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

Last Updated

\n' output += '

\n' - output += '%s\n' % time.strftime('%A %B %d, %Y %H:%M', time.localtime()) + output += '%s\n' % time.strftime('%A %B %d, %Y %H:%M AWST', time.localtime()) output += '

\n' if self.parent: output += '

Feeds

\n' @@ -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.gmtime(date.planetDate)) + output += '

%s

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