This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: TimedRotatingFileHandler midnight rollover time increases
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: vinay.sajip Nosy List: awaters, josiahcarlson, mwh, nnorwitz, sf-robot, vinay.sajip
Priority: normal Keywords:

Created on 2006-01-04 08:25 by awaters, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg27239 - (view) Author: Andrew Waters (awaters) Date: 2006-01-04 08:25
When calculating the next rollover time the 
calculation uses the current time plus the interval.  
Unless the log file is written exactly at midnight 
the rollover time becomes the current time + 1 day.  
So for example, if the log is written at 2:00am then 
the next rollover time will be 2:00am the following 
day rather than midnight.
msg27240 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-01-05 05:46
Logged In: YES 
user_id=33168

Vinay, any comments?
msg27241 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2006-01-14 03:46
Logged In: YES 
user_id=341410

For this handler, one should also be aware of the fact that
when DST changes, the time.timezone doesn't change, so
calculation of when midnight actually is (if one does that),
may be off by an hour until the daemon restarts.
msg27242 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2006-01-16 09:18
Logged In: YES 
user_id=308438

Fixed the rollover time increase problem (checked into SVN
trunk and release24-maint branch). However, DST adjustment
has not been done yet.

msg27243 - (view) Author: SourceForge Robot (sf-robot) Date: 2006-02-02 00:54
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
msg27244 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2006-02-02 00:59
Logged In: YES 
user_id=6656

Woah, that's a new one.  When did that get set up?
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42759
2006-01-04 08:25:41awaterscreate