lestrrat-p5 / DateTime-Format-Pg

Other
2 stars 5 forks source link

Negative Seconds with fractional seconds had the wrong sign #17

Closed yewtc closed 3 years ago

yewtc commented 5 years ago

For an negative interval if, the seconds part has a fractional part. The existing code will consider the seconds to be positive - causing the result to be up to about 2 minutes out, the added test without the fix gives prove.txt