summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Kenna <cjk@cs.unc.edu>2012-06-13 12:08:28 -0400
committerChristopher Kenna <cjk@cs.unc.edu>2012-06-13 12:08:28 -0400
commit5cadf1145a20c6767c706959b576e1d7ca1aaefa (patch)
treefeed584a797b2b04e300665dde47ee785214e49e
parentc061f24115bb6bc963232741bf3d508c76286708 (diff)
Change date format in Python conference script
-rwxr-xr-xconferences.py3
1 files changed, 1 insertions, 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):
56 def html_date(cls, d): 56 def html_date(cls, d):
57 if d.is_tbd(): 57 if d.is_tbd():
58 return 'TBD' 58 return 'TBD'
59 # using string format to get '2' and not '02' 59 return d.dt.strftime('%m/%d/%y')
60 return d.dt.strftime('%b. {0}, %Y'.format(d.dt.day))
61 60
62 def __eq__(self, other): 61 def __eq__(self, other):
63 a_is_tbd, b_is_tbd = self.is_tbd(), other.is_tbd() 62 a_is_tbd, b_is_tbd = self.is_tbd(), other.is_tbd()