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 doesn’t handle the switch to/from DST when using daily/midnight rotation
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Cristian Martinez de Morentin, vinay.sajip
Priority: normal Keywords:

Created on 2020-11-02 09:19 by Cristian Martinez de Morentin, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg380201 - (view) Author: Cristian Martinez de Morentin (Cristian Martinez de Morentin) Date: 2020-11-02 09:19
TimedRotatingFileHandler doesn’t handle the switch to/from DST when using daily/midnight rotation. When DST switch occurs, the previous day logging file is overwritten. The issue is present regardless of the value of the UTC flag (True/False).

For instance, we had a DST switch on october 24th in Spain and no logging file was created for that day. Instead, the data was written to october 23rd file.
History
Date User Action Args
2022-04-11 14:59:37adminsetgithub: 86410
2020-11-02 09:38:58xtreaksetnosy: + vinay.sajip
2020-11-02 09:19:48Cristian Martinez de Morentincreate