Author ammar2
Recipients SilentGhost, ammar2, belopolsky, paul.moore, pekka.klarck, r.david.murray, steve.dower, tim.golden, zach.ware
Date 2016-12-29.15:28:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483025284.87.0.282211545943.issue29097@psf.upfronthosting.co.za>
In-reply-to
Content
The 86,399 upperbound comes from this line (max_fold_seconds=86400):

https://github.com/python/cpython/blob/master/Modules/_datetimemodule.c#L4277-L4278

The bug is introduced as part of the fold detection in this commit: https://github.com/python/cpython/commit/56376cacd2a0f6af834fe4d2a20b1a1095afb26f

Window's locatime_s function gives an EINVAL error when time is less than 0. Which is where the OSError comes from.

https://msdn.microsoft.com/en-us/library/a442x3ye.aspx
History
Date User Action Args
2016-12-29 15:28:04ammar2setrecipients: + ammar2, paul.moore, belopolsky, tim.golden, r.david.murray, SilentGhost, pekka.klarck, zach.ware, steve.dower
2016-12-29 15:28:04ammar2setmessageid: <1483025284.87.0.282211545943.issue29097@psf.upfronthosting.co.za>
2016-12-29 15:28:04ammar2linkissue29097 messages
2016-12-29 15:28:04ammar2create