aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Turbing <pascal@turbing.de>2009-12-03 22:53:37 +0100
committerPascal Turbing <pascal@turbing.de>2009-12-03 22:53:37 +0100
commit5c5c0cdf0b88c64262843c21093bd6a3edb83121 (patch)
tree943dda4fe7051f8d94559b04d5a6d10107983f0b
parent6c4970adff15fe709a25c559501678ad4dde44d3 (diff)
Fixed Atom-Timestamp
-rwxr-xr-xblogthon.cgi6
-rw-r--r--configuration2
2 files changed, 4 insertions, 4 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 48a9dee..1530c29 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -118,7 +118,7 @@ try: smtp_host = configuration.get('smtp', 'smtp_host')
except: errorpage('"smtp_host" is missing in configuration!')
try: feed_preview = configuration.get('feed', 'feed_preview')
-except: errorpage('"feed_preview" is missing or empty in configuration')
+except: errorpage('"feed_preview" is missing or empty in configuration!')
# Read POST Variables
action = cgi.FieldStorage()
@@ -224,13 +224,13 @@ if feed_display == "atom":
if j > 10: j = 10
for i in xrange(0, j):
title = str(entries[i][1]).replace('entries/', '', 1).replace('.' + entries_suffix, '')
- date = time.strftime("%a, %d %b %Y %H:%M:%S %z", time.gmtime(time.mktime(entries[i][0])))
+ date = entries[i][0]
title_md5sum = generate_uuid(title)
print ' <entry>'
print ' <title>' + title + '</title>'
print ' <link href="' + blog_url + '?p=' + title + '"/>'
print ' <id>urn:uuid:' + title_md5sum + '</id>'
- print ' <updated>' + date + '</updated>'
+ print ' <updated>' + str(date[0]) + '-' + month + '-' + day + 'T' + hour + ':' + min + ':' + sec + 'Z</updated>'
print ' <summary>'
content = open(str(entries[i][1]), 'r')
for h in xrange(0, int(feed_preview)):
diff --git a/configuration b/configuration
index 234f1ed..f7949aa 100644
--- a/configuration
+++ b/configuration
@@ -14,7 +14,7 @@ staticpages: True
monthlist: True
linklist: True
permalinks: True
-comments:
+comments: True
newest_first: True
[smtp]