I fixed this code back in commit 841b4a2d, but didn't think carefully enough about the behavior near zero, which meant it improperly rejected 1999-12-31 24:00:00. Per report from Magnus Hagander.
Attach a file by drag & drop or click to upload