community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r1774091 - /comdev/tools/meetups.py
Date Tue, 13 Dec 2016 19:47:53 GMT
Author: rbowen
Date: Tue Dec 13 19:47:53 2016
New Revision: 1774091

URL: http://svn.apache.org/viewvc?rev=1774091&view=rev
Log:
Correctly use strftime to get the date in the format I want it.

Modified:
    comdev/tools/meetups.py

Modified: comdev/tools/meetups.py
URL: http://svn.apache.org/viewvc/comdev/tools/meetups.py?rev=1774091&r1=1774090&r2=1774091&view=diff
==============================================================================
--- comdev/tools/meetups.py (original)
+++ comdev/tools/meetups.py Tue Dec 13 19:47:53 2016
@@ -133,10 +133,7 @@ up a brief summary of what was covered.
             continue
 
         eventtime = date.fromtimestamp( eventts/1000 )
-        t = eventtime.strftime("%c");
-
-        # Don't care about the time
-        t = re.sub( ' \d\d:\d\d:\d\d \d\d\d\d', '', t );
+        t = eventtime.strftime("%A %B %d")
 
         # Skip it if we've already seen it
         uniq = meetup['name'] + t



Mime
View raw message