[issue2315] TimedRotatingFileHandler does not account for daylight savings time

Per Cederqvist report at bugs.python.org
Mon Mar 17 09:00:09 CET 2008


New submission from Per Cederqvist <ceder at lysator.liu.se>:

If TimedRotatingFileHandler is instructed to roll over the log at
midnight or on a certain weekday, it needs to consider when daylight
savings time starts and ends. The current code just blindly adds
self.interval to self.rolloverAt, totally ignoring that sometimes it
should add 23 or 25 hours instead of 24 hours.

(I suspect that the implementation would be simpler if you use the
datetime module, rather than attempt to patch the existing code.)

----------
components: Library (Lib)
messages: 63622
nosy: ceder
severity: normal
status: open
title: TimedRotatingFileHandler does not account for daylight savings time
type: behavior
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2315>
__________________________________


More information about the Python-bugs-list mailing list