Skip to content

Date::Parse::str2time maps date in 1963 to 2063 [rt.cpan.org #84075] #12

@atoomic

Description

@atoomic

Migrated from rt.cpan.org#84075 (status was 'new')

Requestors:

Attachments:

From keith.s.thompson@gmail.com on 2013-03-19 18:37:42
:

The Date::Parse::str2time function, given a string representing a date in 
1963 such as "1963-12-31 23:59:59 UTC", returns a value denoting a date 
exactly 100 years later. Similar strings representing dates in 1964 or 
later are handled correctly. (I wonder if the relevant year is 50 years 
before the current year; that's just a guess.)

The attached test script demonstrates the bug, and includes the output I 
got after the __END__ marker; the output shows the version of Perl, of 
the Date::Parse module, and of my system (64-bit Linux).

The strptime() function works correctly for the same input strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions