Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-131830

Bad result in Date::Parse::str2time() for dates < 1970

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-8.10
    • perl-TimeDate
    • None
    • None
    • None
    • rhel-stacks-services-scripting
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      use Date::Parse;
      print str2time("1901-12-17 00:00:00 GMT")."\n";

      What is the impact of this issue to you?

      The Red Hat tests not work. It's kind of regression.

      This is present after merge of https://gitlab.com/redhat/rhel/tests/perl-TimeDate/-/merge_requests/1

      Please provide the package NVR for which the bug is seen:

      perl-TimeDate-1:2.30-15.module+el8.3.0+6498+9eecfe51.noarch

      How reproducible is this bug?:

      Steps to reproduce

      1. Run example above
      2.  
      3.  

      Expected results

      Expected result is -2147212800

      Actual results

      Actual result is 1008547200

              mspacek@redhat.com Michal Josef Spacek
              mspacek@redhat.com Michal Josef Spacek
              perl-maint-list perl-maint-list
              Martin Kyral Martin Kyral
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: