X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=XMLWriter.py;h=5b0582ea7b8cf761f76841f85a06db3690a07049;hb=73c1202987332c16b1ea6919aa635113bd3ce6cd;hp=7d858eda22b389a23fb4d0a6583cb2e4ba196b79;hpb=52bdf3b4fdfcfda1755df475b0c47302f56b8bf1;p=planet-ucc.git diff --git a/XMLWriter.py b/XMLWriter.py index 7d858ed..5b0582e 100644 --- a/XMLWriter.py +++ b/XMLWriter.py @@ -60,8 +60,8 @@ class Planet: if lastItem == None: break # this checks to see if it's a new day - if time.localtime(lastItem.itemDate)[6] != lastDate: - lastDate = time.localtime(lastItem.itemDate)[6] + if time.gmtime(lastItem.itemDate)[6] != lastDate: + lastDate = time.gmtime(lastItem.itemDate)[6] workingDate = PlanetDate(lastItem.itemDate) self.dates.append(workingDate) # append the item to the current date @@ -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 UTC', time.gmtime()) output += '

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

Feeds

\n'