Skip to content

Commit 4623053

Browse files
committed
fixup! Add script to create RSS and Atom feeds
1 parent 8b8a48e commit 4623053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quiz/management/commands/generate_feeds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ def handle(self, *args, **options):
7575
question = atom_question if feed_format == "atom" else rss_question
7676
footer = atom_footer if feed_format == "atom" else rss_footer
7777

78-
last_build_date = datetime.datetime.now().strftime("%a, %d %b %Y %H:%M:%S %z")
78+
last_build_date = datetime.datetime.now().strftime("%a, %d %b %Y %H:%M:%S GMT")
7979
print(header.replace("{{last_build_date}}", last_build_date))
8080

8181
for q in get_published_questions().order_by('-publish_time')[:self.post_count]:
8282
url = settings.SITE_URL + reverse('quiz:question', args=[q.pk])
8383
print(question.replace("{{id}}", str(q.id)).replace("{{url}}", url).replace(
84-
"{{pubdate}}", q.publish_time.strftime("%a, %d %b %Y %H:%M:%S %z")))
84+
"{{pubdate}}", q.publish_time.strftime("%a, %d %b %Y %H:%M:%S GMT")))
8585

8686
print(footer)

0 commit comments

Comments
 (0)