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
pass
output += '<h2>Last Updated</h2>\n'
output += '<p>\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 += '</p>\n'
if self.parent:
output += '<h2>Feeds</h2>\n'