Mercurial > p > roundup > code
diff roundup/date.py @ 2402:3953092900dd
fix python 2.3.3 strftime deprecation warning (patch [SF#968398])
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 08 Jun 2004 05:37:36 +0000 |
| parents | 8a9af227a557 |
| children | 74b63b1beff1 |
line wrap: on
line diff
--- a/roundup/date.py Tue Jun 08 05:36:07 2004 +0000 +++ b/roundup/date.py Tue Jun 08 05:37:36 2004 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: date.py,v 1.71 2004-06-05 12:04:02 a1s Exp $ +# $Id: date.py,v 1.72 2004-06-08 05:37:36 richard Exp $ """Date, time and time interval handling. """ @@ -355,7 +355,7 @@ format, then the day number will be removed from output. ''' str = time.strftime(format, (self.year, self.month, self.day, - self.hour, self.minute, self.second, 0, 0, 0)) + self.hour, self.minute, int(self.second), 0, 0, 0)) # handle zero day by removing it if format.startswith('%d') and str[0] == '0': return ' ' + str[1:]
