Skip to content

Commit

Permalink
status/web/feeds.py: fix pubDate format
Browse files Browse the repository at this point in the history
A prior localization fix caused RFC822-style dates to be rendered as follows:

1, 23 7 2013 13:04:18 GMT

This implements the fix proposed in http://trac.buildbot.net/ticket/2530
  • Loading branch information
Charles Lepple committed Jul 30, 2013
1 parent 66a6428 commit 3fd9995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/status/web/feeds.py
Expand Up @@ -66,7 +66,7 @@ def render(self, request):
def rfc822_time(tstamp):
res = time.strftime("%%s, %d %%s %Y %H:%M:%S GMT",
tstamp)
res = res % (tstamp.tm_wday, tstamp.tm_mon)
res = res % (_abbr_day[tstamp.tm_wday], _abbr_mon[tstamp.tm_mon])
return res

class FeedResource(XmlResource):
Expand Down

0 comments on commit 3fd9995

Please sign in to comment.