Skip to content

Commit

Permalink
RSS2 expects lastBuildDate to be GMT.
Browse files Browse the repository at this point in the history
PyRSS2Gen expects the lastBuildDate to be in GMT, and ignores any
timezone information when generating the RSS.
  • Loading branch information
punchagan committed Jan 16, 2015
1 parent 7987770 commit fc93c5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nikola/nikola.py
Expand Up @@ -1021,7 +1021,7 @@ def generic_rss_renderer(self, lang, title, link, description, timeline, output_
title=title,
link=link,
description=description,
lastBuildDate=datetime.datetime.now(),
lastBuildDate=datetime.datetime.utcnow(),
generator='http://getnikola.com/',
language=lang
)
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/task/galleries.py
Expand Up @@ -575,7 +575,7 @@ def make_url(url):
title=title,
link=make_url(permalink),
description='',
lastBuildDate=datetime.datetime.now(),
lastBuildDate=datetime.datetime.utcnow(),
items=items,
generator='http://getnikola.com/',
language=lang
Expand Down

0 comments on commit fc93c5d

Please sign in to comment.