gweis / isodate

ISO 8601 date/time parser
BSD 3-Clause "New" or "Revised" License
148 stars 58 forks source link

Milliseconds round down #50

Closed kidig closed 2 years ago

kidig commented 6 years ago

If someone send time with second's precision with more than 6 decimal places you may have an error in time() function.

For example: (and I've very got it!)

2017-11-29T10:59:59.9999999Z - this will have 60.000000 seconds after time parsing and raise the error.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.01%) to 94.444% when pulling c2b9c51fa69ef5b76eef4b24a9a1b25214de3a36 on kidig:master into ce635a7a483effb3fc246721cfb5a8a7b5174ab5 on gweis:master.

gweis commented 2 years ago

fixed in 89f8089