Bug 1377428 - perl Datetime::Format::Pg doesn't handle fractions of a second.
Summary: perl Datetime::Format::Pg doesn't handle fractions of a second.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-DateTime-Format-Pg
Version: 23
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/lestrrat/DateTime-...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-19 16:10 UTC by Steve Rogerson
Modified: 2016-09-30 15:52 UTC (History)
4 users (show)

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:
Clone Of:
Environment:
Last Closed: 2016-09-27 00:36:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
A perl test file (274 bytes, text/plain)
2016-09-19 16:10 UTC, Steve Rogerson
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.