New submission from Moshe Cohen:
The logic for determining the time till midnight on the requested day of
week is reversed.
>From logging/handlers.py:234
if day > self.dayOfWeek:
daysToWait = (day - self.dayOfWeek) - 1
self.rolloverAt = self.rolloverAt + (daysToWait *
(60 * 60 * 24))
if day < self.dayOfWeek:
daysToWait = (6 - self.dayOfWeek) + day
self.rolloverAt = self.rolloverAt + (daysToWait *
(60 * 60 * 24))
The two cases are reversed. 'day' is the current day. 'self.dayOfWeek'
is the desired day.
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1321>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com