Roundup Tracker - Issues

Issue 1095292

classification
bug in date.pretty() (python 2.4)
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed fixed
:
: richard : richard, stefan
Priority: normal :

Created on 2005-01-03 22:11 by stefan, last changed 2005-01-03 22:11 by stefan.

Messages
msg1787 Author: [hidden] (stefan) Date: 2005-01-03 22:11
roundup/date.py:365 calls time.strftime() with the date
tuple
partially set to zero. As the next to last element
should be the
day-of-year, and as python 2.4 raises ValueErrors for
out-of-range
values, this call generates an exception.

FIX: replace

        str = time.strftime(format, (self.year,
self.month, self.day,
            self.hour, self.minute, int(self.second),
0, 0, 0))

with

        str = time.strftime(format, (self.year,
self.month, self.day,
            self.hour, self.minute, int(self.second),
0, 1, 0))
msg1788 Author: [hidden] (richard) Date: 2005-01-03 23:32
Logged In: YES 
user_id=6405

This is fixed in CVS. 
History
Date User Action Args
2005-01-03 22:11:40stefancreate