Skip to content

Commit fc93c5d

Browse files
committedJan 16, 2015
RSS2 expects lastBuildDate to be GMT.
PyRSS2Gen expects the lastBuildDate to be in GMT, and ignores any timezone information when generating the RSS.
1 parent 7987770 commit fc93c5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎nikola/nikola.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ def generic_rss_renderer(self, lang, title, link, description, timeline, output_
10211021
title=title,
10221022
link=link,
10231023
description=description,
1024-
lastBuildDate=datetime.datetime.now(),
1024+
lastBuildDate=datetime.datetime.utcnow(),
10251025
generator='http://getnikola.com/',
10261026
language=lang
10271027
)

‎nikola/plugins/task/galleries.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def make_url(url):
575575
title=title,
576576
link=make_url(permalink),
577577
description='',
578-
lastBuildDate=datetime.datetime.now(),
578+
lastBuildDate=datetime.datetime.utcnow(),
579579
items=items,
580580
generator='http://getnikola.com/',
581581
language=lang

0 commit comments

Comments
 (0)
Please sign in to comment.