Time Fix. Still needs work.
authordavyd <davyd>
Sat, 7 Feb 2004 16:55:34 +0000 (16:55 +0000)
committerdavyd <davyd>
Sat, 7 Feb 2004 16:55:34 +0000 (16:55 +0000)
XMLWriter.py

index 80270b2..fdd95c2 100644 (file)
@@ -96,7 +96,7 @@ class XHTMLWriter:
                output  +=      '<p class="time">\n'
                if item.imageURL:
                        output += '<a class="image" href="%s"><img class="image" src="%s" alt="%s" /></a>\n' % (item.imageLink, item.imageURL, item.blogTitle)
-               output  +=      '(<a href="%s">%s</a>)\n' % (item.itemURL ,time.strftime('%A %B %d, %Y %H:%M %Z', time.localtime(item.itemDate)))
+               output  +=      '(<a href="%s">%s</a>)\n' % (item.itemURL ,time.strftime('%A %B %d, %Y %H:%M %Z', time.gmtime(item.itemDate)))
                output  +=      '</p>\n'
                output  +=      '<p class="body">\n'
                output  +=      item.contents
@@ -140,7 +140,7 @@ class XHTMLWriter:
                output  +=      '</div>\n'
                output  +=      '<div class="items">\n'
                for date in self.planet:
-                       output  += '<h1>%s</h1>\n' % time.strftime('%A %B %d, %Y', time.localtime(date.planetDate))
+                       output  += '<h1>%s</h1>\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

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