From 5cadf1145a20c6767c706959b576e1d7ca1aaefa Mon Sep 17 00:00:00 2001 From: Christopher Kenna Date: Wed, 13 Jun 2012 12:08:28 -0400 Subject: Change date format in Python conference script --- conferences.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conferences.py b/conferences.py index 067eb6e..8f22d23 100755 --- a/conferences.py +++ b/conferences.py @@ -56,8 +56,7 @@ class ConferenceDate(object): def html_date(cls, d): if d.is_tbd(): return 'TBD' - # using string format to get '2' and not '02' - return d.dt.strftime('%b. {0}, %Y'.format(d.dt.day)) + return d.dt.strftime('%m/%d/%y') def __eq__(self, other): a_is_tbd, b_is_tbd = self.is_tbd(), other.is_tbd() -- cgit v1.2.2