Bug 1377428

Summary: perl Datetime::Format::Pg doesn't handle fractions of a second.
Product: [Fedora] Fedora Reporter: Steve Rogerson <steve.bz>
Component: perl-DateTime-Format-PgAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: iarnell, jplesnik, perl-devel, ppisar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
URL: https://github.com/lestrrat/DateTime-Format-Pg/issues/12
Whiteboard:
Fixed In Version: perl-DateTime-Format-Pg-0.16012-2.fc26 perl-DateTime-Format-Pg-0.16012-2.fc25 perl-DateTime-Format-Pg-0.16012-2.fc23 perl-DateTime-Format-Pg-0.16012-2.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-27 00:36:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
A perl test file none

Description Steve Rogerson 2016-09-19 16:10:19 UTC
Created attachment 1202544 [details]
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.

Comment 1 Petr Pisar 2016-09-20 07:34:54 UTC
Thank you for the report and handling it with the author. I will apply the fix to all Fedoras.

Comment 2 Fedora Update System 2016-09-20 07:48:52 UTC
perl-DateTime-Format-Pg-0.16012-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-bce6185ef5

Comment 3 Fedora Update System 2016-09-20 07:49:04 UTC
perl-DateTime-Format-Pg-0.16012-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d98b327680

Comment 4 Fedora Update System 2016-09-20 07:49:16 UTC
perl-DateTime-Format-Pg-0.16012-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-a112fd7e4d

Comment 5 Fedora Update System 2016-09-20 19:56:47 UTC
perl-DateTime-Format-Pg-0.16012-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-bce6185ef5

Comment 6 Fedora Update System 2016-09-22 01:24:40 UTC
perl-DateTime-Format-Pg-0.16012-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-a112fd7e4d

Comment 7 Fedora Update System 2016-09-22 01:25:32 UTC
perl-DateTime-Format-Pg-0.16012-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d98b327680

Comment 8 Fedora Update System 2016-09-27 00:36:44 UTC
perl-DateTime-Format-Pg-0.16012-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2016-09-29 22:51:06 UTC
perl-DateTime-Format-Pg-0.16012-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2016-09-30 15:52:24 UTC
perl-DateTime-Format-Pg-0.16012-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.