git.ucc.asn.au
/
planet-ucc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
52bdf3b
)
More time fixes
author
davyd
<davyd>
Sat, 7 Feb 2004 17:04:07 +0000
(17:04 +0000)
committer
davyd
<davyd>
Sat, 7 Feb 2004 17:04:07 +0000
(17:04 +0000)
XMLWriter.py
patch
|
blob
|
history
diff --git
a/XMLWriter.py
b/XMLWriter.py
index
7d858ed
..
5b0582e
100644
(file)
--- 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 lastItem == None:
break
# this checks to see if it's a new day
- if time.
local
time(lastItem.itemDate)[6] != lastDate:
- lastDate = time.
local
time(lastItem.itemDate)[6]
+ if time.
gm
time(lastItem.itemDate)[6] != lastDate:
+ lastDate = time.
gm
time(lastItem.itemDate)[6]
workingDate = PlanetDate(lastItem.itemDate)
self.dates.append(workingDate)
# append the item to the current date
workingDate = PlanetDate(lastItem.itemDate)
self.dates.append(workingDate)
# append the item to the current date
@@
-129,7
+129,7
@@
class XHTMLWriter:
pass
output += '<h2>Last Updated</h2>\n'
output += '<p>\n'
pass
output += '<h2>Last Updated</h2>\n'
output += '<p>\n'
- output += '%s\n' % time.strftime('%A %B %d, %Y %H:%M
', time.local
time())
+ output += '%s\n' % time.strftime('%A %B %d, %Y %H:%M
UTC', time.gm
time())
output += '</p>\n'
if self.parent:
output += '<h2>Feeds</h2>\n'
output += '</p>\n'
if self.parent:
output += '<h2>Feeds</h2>\n'
UCC
git Repository :: git.ucc.asn.au