https://bugzilla.redhat.com/show_bug.cgi?id=1377428
Bug ID: 1377428 Summary: perl Datetime::Format::Pg doesn't handle fractions of a second. Product: Fedora Version: 23 Component: perl-DateTime-Format-Pg Severity: medium Assignee: jplesnik@redhat.com Reporter: steve.bz@yewtc.demon.co.uk QA Contact: extras-qa@fedoraproject.org CC: iarnell@gmail.com, jplesnik@redhat.com, perl-devel@lists.fedoraproject.org
Created attachment 1202544 --> https://bugzilla.redhat.com/attachment.cgi?id=1202544&action=edit A perl test file
Description of problem: DateTime::Format::Pg::format_duration rejects valid date with fractional seconds
Version-Release number of selected component (if applicable):
0.16012-1.fc23
How reproducible:
Every time
Steps to Reproduce: 1. give the routine a date time duration with fractional seconds 2. 3.
Actual results: Code dies for example with: "Unknown timespec: 17:00:00.12"
Expected results:
It gives a valid DateTime::Duration object
Additional info:
This is also a bug in fc24. I notified the perl maintainer and has a bug fix.
The attached perl test passes at .16011 and fails .16012
A work around is to downgrade.