Description of problem: Version-Release number of selected component (if applicable): RHEL 7.7 perl 5.16.3 Time::Piece 1.20_01 - Resolved upstream with this bug: https://rt.cpan.org/Public/Bug/Display.html?id=88211 How reproducible: Always Steps to Reproduce: 1. sudo yum install perl-Time-Piece -y 2. perl -mTime::Piece -e 'print Time::Piece->strptime("2019 1", "%Y %j")->strftime("%c")' 3. perl -mTime::Piece -e 'print Time::Piece->strptime("2019 32", "%Y %j")->strftime("%c")' Actual results: Tue 01 Jan 2019 12:00:00 AM UTC Tue 01 Jan 2019 12:00:00 AM UTC Expected results: Tue 01 Jan 2019 12:00:00 AM UTC Fri 01 Feb 2019 12:00:00 AM UTC Additional info:
Created attachment 1614383 [details] Fix day of year parsing
I confirm this issue in perl-Time-Piece-1.20.1-294.el7_6.
When I tried to build the patched perl, I found that tests ./cpan/Time-Local/t/Local.t failed with this error: ../cpan/Time-Local/t/Local.t ...................................... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/163 subtests (less 11 skipped subtests: 150 okay) # Failed test 'timelocal year for 1970 1 2 0 0 0' # at t/Local.t line 108. # got: '170' # expected: '70' # Failed test 'timegm year for 1970 1 2 0 0 0' # at t/Local.t line 124. # got: '170' # expected: '70' # Looks like you failed 2 tests of 163. The issue is described in https://github.com/Perl/perl5/issues/17410 The possible fix is provided here https://rt.cpan.org/Public/Bug/Display.html?id=124787 I use the patch to solve a build failure.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (perl bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:3854