Permalink
Browse files

Include event date on RSS feed (Fixes #39)

Added event start date and time to the title tag in the rss feed
  • Loading branch information...
mikeharris100 committed Nov 26, 2011
1 parent 4c65b32 commit 15786c30cee4cdfafad2f4b0417e4d2990b10063
Showing with 4 additions and 1 deletion.
  1. +4 −1 main.py
View
@@ -162,7 +162,10 @@ def export_rss(self):
description = "Upcoming events at the Hacker Dojo in Mountain View, CA",
lastBuildDate = datetime.now(),
items = [PyRSS2Gen.RSSItem(
- title = event.name,
+ title = "%s @ %s: %s" % (
+ event.start_time.strftime("%A, %B %d"),
+ event.start_time.strftime("%I:%M%p").lstrip("0"),
+ event.name),
link = url_base + event_path(event),
description = event.details,
guid = url_base + event_path(event),

0 comments on commit 15786c3

Please sign in to comment.