Bugs item #1396030, was opened at 2006-01-03 14:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1396030&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Waters (awaters)
Assigned to: Nobody/Anonymous (nobody)
Summary: TimedRotatingFileHandler at midnight rolls over at 01:00

Initial Comment:
Using TimedRotatingFileHandler with interval set to
midnight rolls the log over at 1:00am rather than
midnight. (LocalTime = GMT).

This is because the calculation of seconds until
midnight is incorrect (it behaves as if there are 24
hours, 59 minutes and 59 seconds in the day).

It also means that should a program stop between
midnight and 1:00am and restart it fails to roll over
the log as the log over time is set to 1:00am the next day.

Occurs on Linux (FC3), Windows XP (SP2).

Bug occurs (2.4.2 and currently exists in most recent
2.5 SVN code).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1396030&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to