Skip Menu |
 

This queue is for tickets about the TimeDate CPAN distribution.

Report information
The Basics
Id: 128158
Status: open
Priority: 0/
Queue: TimeDate

People
Owner: Nobody in particular
Requestors: jeffrey.l.holt [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, score=0.007 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DATE_IN_PAST_24_48=1.34, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_SOFTFAIL=0.665] autolearn=no
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
Content-Type: multipart/alternative; boundary="000000000000981d85057e80ea1a"
Message-ID: <CAChzgUci7_h1sYY_VZospGN0iqjFYFQgLMbFW9O=RpdwHUtByQ [...] mail.gmail.com>
X-Received: by 2002:a5d:8946:: with SMTP id b6mr12438599iot.231.1546467040303; Wed, 02 Jan 2019 14:10:40 -0800 (PST)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: 0.007
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id EB0A024027C for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Wed, 2 Jan 2019 17:10:57 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d9Ofax9tS2-M for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Wed, 2 Jan 2019 17:10:56 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 73CB32400E0 for <bug-TimeDate [...] rt.cpan.org>; Wed, 2 Jan 2019 17:10:55 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 7FDA711EFAF for <bug-TimeDate [...] rt.cpan.org>; Wed, 2 Jan 2019 14:10:53 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id B96B611F0B0 for <bug-TimeDate [...] rt.cpan.org>; Wed, 2 Jan 2019 14:10:50 -0800 (PST)
Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 894EE11EFAF for <bug-TimeDate [...] rt.cpan.org>; Wed, 2 Jan 2019 14:10:41 -0800 (PST)
Received: by mail-io1-f68.google.com with SMTP id c2so3487938iom.12 for <bug-TimeDate [...] rt.cpan.org>; Wed, 02 Jan 2019 14:10:41 -0800 (PST)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
X-Google-SMTP-Source: ALg8bN4XMabNHM7s/r08wWrX+T3+REvsiUM307O/6g0U0NDhymVocMPGQfAhgS0ljj5SzbllqkZjybd+GO/Vl21RFAw=
Delivered-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
Subject: After 2018-DEC-31T23:59:59, Date::Parse::str2time returns wrong value for dates before 1970-01-01T00:00:00
Return-Path: <jeffrey.l.holt [...] gmail.com>
X-RT-Mail-Extension: timedate
X-Original-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=g4a0EpGC8w0+fO3ttbBXCEpOsZXpB4BnlwVHy/N8sRQ=; b=s1ZHkLPOfhZPCXNubf56z2bN0dv19K4AQyMKuCbvExq0x97LpRA6OVUVjGErITj9Uk d5BG34wsz3V9M6SMFbe1bBaIZJGONOfvSBVGau8gD5hL70KHLFckdpadiwXPkBxqTjHS 9db3XnjxNlNCuA5ucW0l65EZwKkL++lZk1IWwyMdzjK21MXopCBiIiV5vfSvmi2AWU5r WRjRRY4dOr40Dmzv7tm8n6JRj2YUbLPfPgcwJMJKr/w8PL/xVExZukV6KL7uT/5erOj6 BxVKQQkyjzXIFfiTtPy8K9W1dTW9pXK5ZzU8Apmp2R8YrS/B5YCWQ9xvyqKOlWuaFdJ9 Vx4g==
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=g4a0EpGC8w0+fO3ttbBXCEpOsZXpB4BnlwVHy/N8sRQ=; b=SQRB8ohwkO7NaXnMUYuSF4TGZVEnirADtNmNjX4/flI3gk6ULfQnG4ZWBZOmKUiCrZ 6gglbtxg/NMv4/ssRHLOc+gvqQO09EcSqGV0h9GzX3LIpFKUR8NzjloefXB3EoqUdszW JNxZsfCaBjnLD7eNey0/aU8CS6+xPBpHaKlkMdxhHzD9a+OpkBcpLKs9pEFkjeqWpBZ0 6/+Nk0t2ebkGbC93ev+BEUeEtCa9bLTteTxSipenlKtyO17PUGJvHpUc+sKCFY9bx+sA MkX118ZCiyky81KYlL+pFfNexTNLT8fYsMBC9OKLqQHrB5PyDE7MidMYIYKueibFXtts xuQg==
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_50_70 0.1, BODYTEXTH_SIZE_3000_MORE 0, BODY_SIZE_10000_PLUS 0, DATE_TZ_NA 0, DKIM_ALIGNS 0, DKIM_SIGNATURE 0, NO_URI_HTTPS 0, SPF_PASS 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __DKIM_ALIGNS_1 0, __DKIM_ALIGNS_2 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __FUR_RDNS_GMAIL 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HELO_GMAIL 0, __HEX28_LC_BOUNDARY 0, __HIGHBITS 0, __HTML_AHREF_TAG 0, __HTML_TAG_DIV 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MULTIPLE_URI_HTML 0, __MULTIPLE_URI_TEXT 0, __RDNS_WEBMAIL 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_MAILTO 0, __URI_NS , __URI_WITHOUT_PATH 0, __URI_WITH_PATH 0, __X_GOOGLE_DKIM_SIGNATURE 0, __YOUTUBE_RCVD 0, __zen.spamhaus.org_ERROR '
Date: Tue, 1 Jan 2019 00:01:29 -0600
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2019.1.2.220017
To: bug-TimeDate [...] rt.cpan.org
From: Jeff Holt <jeffrey.l.holt [...] gmail.com>
X-GM-Message-State: AJcUukeyZ9KJqs7ROzsReoqQXPWEOE6nbmiIAMnEKa1WMU9hudZsubof r6rptxor7fm7s2odlgwqoPyRZwJOSVUQCx8F8Tsy0UBN
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 4061
Download (untitled) / with headers
text/plain 3.9k
The str2time function returns the wrong value as soon as the system clock reaches 01-JAN-2019T00:00:00.000000. But it apparently only does so for time values that precede 01-JAN-1970T00:00:00.000000. I've tested version 2.30 of TimeDate with ActivePerl 5.20.2.2001, 5.26.3.2603, and 5.28.1 (built from source) on macos. I've also tested 5.26.3.2603 on mswin64 and linux64 with TimeDate 2.30 and gotten the same incorrect results. To execute the test, you install perl and TimeDate. Then you execute the following t.sh, which does 3 things: 1. prints perl path and perl version 2. changes system date to 31-DEC-2018T23:59:59 3. executes a loop printing date and running the t.pl perl script. Note that I expect t.pl to exit with 1 as I stated above. If you cannot reproduce the failure, then you'll have to interrupt the execution once it becomes clear you won't reproduce the results. Here's t.sh: which perl perl -v sudo date 123123592018.58 while [ 1 ]; do date perl t.pl > t.out 2>&1 if [ $? -ne 0 ]; then cat t.out rm t.out break fi done Here's t.pl: use Date::Parse qw(str2time); my %tests = ( "1969-08-16T14:00:00.000000" => "-11854800", "1969-08-18T03:00:00.000000" => "-11721600", "1969-12-31T23:59:59.999999" => "21599.999999", "1970-01-01T00:00:00.000000" => "21600", ); my $fail = 0; while (my ($s, $expect) = each %tests) { my $got = str2time($s); my $result = $expect eq $got ? "OK" : "FAIL"; print "$result s='$s' expect='$expect' got='$got'\n"; $fail = 1 if $result ne "OK"; } exit ($fail ? 1 : 0); When I execute t.sh, I get the following consistently on my MacBook Pro running Mojave (10.14.2). Notice that sudo will complain about the local time being in the future, this should havd no effect on the test outcome: $ sh t.sh /usr/local/bin/perl This is perl 5, version 28, subversion 1 (v5.28.1) built for darwin-2level Copyright 1987-2018, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 Mon Dec 31 23:59:59 CST 2018 OK s='1970-01-01T00:00:00.000000' expect='21600' got='21600' FAIL s='1969-12-31T23:59:59.999999' expect='21599.999999' got='3155781600' FAIL s='1969-08-16T14:00:00.000000' expect='-11854800' got='3143905200' FAIL s='1969-08-18T03:00:00.000000' expect='-11721600' got='3144038400'
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 10654
Download (untitled) / with headers
text/html 10.4k
MIME-Version: 1.0
In-Reply-To: <CAChzgUci7_h1sYY_VZospGN0iqjFYFQgLMbFW9O=RpdwHUtByQ [...] mail.gmail.com>
X-Spam-Status: No, score=-0.663 tagged_above=-99.9 required=10 tests=[AWL=0.670, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_SOFTFAIL=0.665] autolearn=no
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
References: <CAChzgUci7_h1sYY_VZospGN0iqjFYFQgLMbFW9O=RpdwHUtByQ [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary="00000000000034bbd2057e8f33a6"
Message-ID: <CAChzgUcMGRxyv1JBKBMUiR6N0hqi=8VE8HWga=rR=q3XbSLJaw [...] mail.gmail.com>
X-Received: by 2002:a6b:9188:: with SMTP id t130mr32384962iod.261.1546528388059; Thu, 03 Jan 2019 07:13:08 -0800 (PST)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -0.663
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id AEF22240272 for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 Jan 2019 10:13:22 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MiDIxEvb3vx8 for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 Jan 2019 10:13:21 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 62249240123 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 10:13:20 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 9895111DBD0 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 07:13:19 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 7B43067082 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 07:13:15 -0800 (PST)
Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id B640467081 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 07:13:08 -0800 (PST)
Received: by mail-io1-f66.google.com with SMTP id b16so7572069ior.1 for <bug-TimeDate [...] rt.cpan.org>; Thu, 03 Jan 2019 07:13:08 -0800 (PST)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
X-Google-SMTP-Source: ALg8bN79aXpmD4Q/PP9yDMpCP7OCIMAIWBHn54mfihDt8QdLgwE+X6h9X1gp9PZ8ENQfeLuMD869WzS5/f5th19v/sc=
Delivered-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
Subject: Re: After 2018-DEC-31T23:59:59, Date::Parse::str2time returns wrong value for dates before 1970-01-01T00:00:00
Return-Path: <jeffrey.l.holt [...] gmail.com>
X-RT-Mail-Extension: timedate
X-Original-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Vae3vNZ6hlMHY189jWlFxNkmTDSmIpO6msyHKSsivMU=; b=pjyno8F0GNxbsKqX93NzzPhQJ+Csg/vuJtiSfdBWuszuKjgXZKxyK1QPFX4JqjNJDB PwET/9rChZRcaEJib+A481+dJK8lA815MiRDDK9fto7RJpuk8d5+JM2lrl81tvXR3Soy faDTzP/G5fPZsjTahC2NBnYc8gxDTUMLmlv1BHQrb4KiAH6f12OcPVcO0o38l3j+zMFY QyReHnotTe3Y9qnzpO2orlC7B2Wo/6/Eg1eQREgg8BfxBPyzDPf0ySv8dZZQ2w27GwOM EsYDyAH354V8lEdaojAN9Aosm/QUgJBMNstLU77TAf7z4lpLy+dSfc3t1gwMDFSJFxb4 F5WQ==
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Vae3vNZ6hlMHY189jWlFxNkmTDSmIpO6msyHKSsivMU=; b=ZhGFGSj/nsYvI18XdGsAnsl082tnejm9GUukvKWqwrQ6sy4YAZs3QSbfR3vQlBsemo g4Y/LrUz8Yp/1VQHAZpa+k9vXNL7qZyjn4s3sRdfAMfUETe19Mi1XxYw9idLshyI3+wQ IoeCUVk7tUoFT8DyzTQ3kcLE3CZsaTHh1Nkcts19CoAHIOMbkr8nMF6I3wEPp33R++lr PcIH8/xw96tJhjdBnFYmTiJaI2dLowpfkO5TzDSXzhfePi+KbxQBgDP2F+TB9rTDM68a /fzHLvzWgTrl74Rj99PqkYKWu1gsi1MoZIrl45FboYazEtD3bo8/uot13x3mzMdyA+1F ycTA==
X-PMX-Spam: Gauge=XII, Probability=12%, Report=' DATE_IN_PAST_48_96 1, HTML_50_70 0.1, BODYTEXTH_SIZE_3000_MORE 0, BODY_SIZE_10000_PLUS 0, DATE_TZ_NA 0, DKIM_ALIGNS 0, DKIM_SIGNATURE 0, IN_REP_TO 0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, NO_URI_HTTPS 0, REFERENCES 0, SPF_PASS 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __DKIM_ALIGNS_1 0, __DKIM_ALIGNS_2 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FORWARDED_MSG 0, __FRAUD_BODY_WEBMAIL 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __FUR_RDNS_GMAIL 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HELO_GMAIL 0, __HEX28_LC_BOUNDARY 0, __HIGHBITS 0, __HTML_AHREF_TAG 0, __HTML_TAG_DIV 0, __IN_REP_TO 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MULTIPLE_URI_HTML 0, __MULTIPLE_URI_TEXT 0, __RDNS_WEBMAIL 0, __REFERENCES 0, __SANE_MSGID 0, __SUBJ_ALPHA_NEGATE 0, __SUBJ_REPLY 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NS , __URI_WITHOUT_PATH 0, __URI_WITH_PATH 0, __X_GOOGLE_DKIM_SIGNATURE 0, __YOUTUBE_RCVD 0, __zen.spamhaus.org_ERROR '
Date: Tue, 1 Jan 2019 00:02:42 -0600
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2019.1.3.150616
To: bug-TimeDate [...] rt.cpan.org
From: Jeff Holt <jeffrey.l.holt [...] gmail.com>
X-GM-Message-State: AJcUukfFmaKM4WPkfVUSdDq9YbUDEffwZZ9ZzgBArvmD3t4ROuc+ECVq rPkl+PwaZAp2U+WpV/msmvZFp48G8bWLXEZ4td1kB5uo
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 4574
Download (untitled) / with headers
text/plain 4.4k
I've narrowed the problem to Time::Local::timelocal, which your pod clearly identifies. Please close this case. I'm opening a new one for Time::Local::timelocal. BTW, all of its tests pass too. On Tue, Jan 1, 2019 at 12:01 AM Jeff Holt <jeffrey.l.holt@gmail.com> wrote: Show quoted text
> The str2time function returns the wrong value as soon as the system clock > reaches 01-JAN-2019T00:00:00.000000. But it apparently only does so for > time values that precede 01-JAN-1970T00:00:00.000000. > > I've tested version 2.30 of TimeDate with ActivePerl 5.20.2.2001, > 5.26.3.2603, and 5.28.1 (built from source) on macos. I've also tested > 5.26.3.2603 on mswin64 and linux64 with TimeDate 2.30 and gotten the same > incorrect results. > > To execute the test, you install perl and TimeDate. Then you execute the > following t.sh, which does 3 things: > > 1. prints perl path and perl version > 2. changes system date to 31-DEC-2018T23:59:59 > 3. executes a loop printing date and running the t.pl perl script. > > Note that I expect t.pl to exit with 1 as I stated above. If you cannot > reproduce the failure, then you'll have to interrupt the execution once it > becomes clear you won't reproduce the results. > > Here's t.sh: > > which perl > perl -v > sudo date 123123592018.58 > while [ 1 ]; do > date > perl t.pl > t.out 2>&1 > if [ $? -ne 0 ]; then > cat t.out > rm t.out > break > fi > done > > > Here's t.pl: > > use Date::Parse qw(str2time); > my %tests = ( > "1969-08-16T14:00:00.000000" => "-11854800", > "1969-08-18T03:00:00.000000" => "-11721600", > "1969-12-31T23:59:59.999999" => "21599.999999", > "1970-01-01T00:00:00.000000" => "21600", > ); > my $fail = 0; > while (my ($s, $expect) = each %tests) { > my $got = str2time($s); > my $result = $expect eq $got ? "OK" : "FAIL"; > print "$result s='$s' expect='$expect' got='$got'\n"; > $fail = 1 if $result ne "OK"; > } > exit ($fail ? 1 : 0); > > When I execute t.sh, I get the following consistently on my MacBook Pro > running Mojave (10.14.2). Notice that sudo will complain about the local > time being in the future, this should havd no effect on the test outcome: > > $ sh t.sh > /usr/local/bin/perl > > This is perl 5, version 28, subversion 1 (v5.28.1) built for darwin-2level > > Copyright 1987-2018, Larry Wall > > Perl may be copied only under the terms of either the Artistic License or > the > GNU General Public License, which may be found in the Perl 5 source kit. > > Complete documentation for Perl, including FAQ lists, should be found on > this system using "man perl" or "perldoc perl". If you have access to the > Internet, point your browser at http://www.perl.org/, the Perl Home Page. > > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > Mon Dec 31 23:59:59 CST 2018 > OK s='1970-01-01T00:00:00.000000' expect='21600' got='21600' > FAIL s='1969-12-31T23:59:59.999999' expect='21599.999999' got='3155781600' > FAIL s='1969-08-16T14:00:00.000000' expect='-11854800' got='3143905200' > FAIL s='1969-08-18T03:00:00.000000' expect='-11721600' got='3144038400' >
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 11308
MIME-Version: 1.0
In-Reply-To: <CAChzgUci7_h1sYY_VZospGN0iqjFYFQgLMbFW9O=RpdwHUtByQ [...] mail.gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CAChzgUci7_h1sYY_VZospGN0iqjFYFQgLMbFW9O=RpdwHUtByQ [...] mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-29735-1546537634-1594.128158-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 109
Download (untitled) / with headers
text/plain 109b
Please could you link to the other issue(s) you have opened so that others may track the progress of the fix?
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-29735-1546537634-1594.128158-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CAChzgUci7_h1sYY_VZospGN0iqjFYFQgLMbFW9O=RpdwHUtByQ [...] mail.gmail.com> <rt-4.0.18-29735-1546537634-1594.128158-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-11118-1546538617-855.128158-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 529
Download (untitled) / with headers
text/plain 529b
Here's the link to the case I logged with Time::Local. https://github.com/houseabsolute/Time-Local/issues/8 It turns out that Time::Local has a pod comment implying you (i.e. the Date::Parse maintainer) should never use Time::Local::timelocal. Instead you should be using timelocal_modern. Therefore, it's not a bug in Time::Local, it's a "bug" in Date::Parse inasmuch as it hasn't been maintained sufficiently to prevent these types of problems. I modified the source code to use timelocal_modern but the tests didn't pass.
X-MS-Exchange-Crosstenant-Fromentityheader: Hosted
Spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
Spamdiagnosticoutput: 1:99
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: multipart/alternative; boundary="_000_77AAD249DA8C4E7FBA9FEF2A32B2DAD3amdocscom_"
X-Spam-Score: -1.789
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=softfail (fail, body has been altered) header.i= [...] amdocs.onmicrosoft.com
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=blake [...] vindicia.com;
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id DCA3A240349 for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 Jan 2019 15:14:43 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xveX265xhI2A for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 Jan 2019 15:14:42 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 7E464240123 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 15:14:41 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 93E931221D2 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 12:14:40 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 96BD51221E4 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 12:14:38 -0800 (PST)
Received: from indmail02.amdocs.com (indmail02.amdocs.com [202.91.135.133]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 5C1E61221D2 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 12:14:36 -0800 (PST)
Received: from unknown (HELO INPUNDAGFE1.corp.amdocs.com) ([10.20.40.7]) by indmail02.corp.amdocs.com with ESMTP; 04 Jan 2019 01:30:27 +0530
Received: from INPNQEXCHCAS02.corp.amdocs.com (10.20.40.232) by INPUNDAGFE1.corp.amdocs.com (10.20.40.111) with Microsoft SMTP Server (TLS) id 14.3.399.0; Fri, 4 Jan 2019 01:43:28 +0530
Received: from INPNQEXCHCAS02.corp.amdocs.com (10.20.40.232) by INPNQEXCHCAS02.corp.amdocs.com (10.20.40.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1531.3; Fri, 4 Jan 2019 01:43:28 +0530
Received: from INPNQEXCHEDGE01.corp.amdocs.com (10.19.112.167) by INPNQEXCHCAS02.corp.amdocs.com (10.20.40.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1531.3 via Frontend Transport; Fri, 4 Jan 2019 01:43:28 +0530
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (10.20.25.68) by emm.amdocs.com (10.20.25.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1531.3; Fri, 4 Jan 2019 01:43:27 +0530
Received: from VI1PR06MB5824.eurprd06.prod.outlook.com (20.177.202.160) by VI1PR06MB5456.eurprd06.prod.outlook.com (20.178.80.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.7; Thu, 3 Jan 2019 20:13:24 +0000
Received: from VI1PR06MB5824.eurprd06.prod.outlook.com ([fe80::a038:80d7:ae03:c6d9]) by VI1PR06MB5824.eurprd06.prod.outlook.com ([fe80::a038:80d7:ae03:c6d9%4]) with mapi id 15.20.1495.005; Thu, 3 Jan 2019 20:13:24 +0000
X-MS-Publictraffictype: Email
Delivered-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
X-MS-Exchange-Antispam-Srfa-Diagnostics: SOS;
Subject: [rt.cpan.org #128158]
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Amdocs.onmicrosoft.com; s=selector1-vindicia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nzU4DLUPWLgD7VRsDILXAraiHi8a5dOiO/JVow3fUSs=; b=ySHesMahagYlJ6QfyR7oXLrU+f7d13nEMs+t5BYIVNRT6rku5AcnRS3hAs0P7t4O3tWwrliwgh28k8Mrat7z/+WIHHKDaU5bgQEeCxpo+2DPrQhyMMKGaxX4P8PWkXJIT2UCl5e6eCtzcjXmEJOK92AFUaWoQ5/oNAHhxQlPALk=
Thread-Index: AQHUo6DHYNLC7EA+ZUK49K5Dlp591A==
Date: Thu, 3 Jan 2019 20:13:24 +0000
X-MS-Exchange-Senderadcheck: 1
X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' HTML_70_90 0.1, RCVD_FROM_IP_DATE 0.1, SUPERLONG_LINE 0.05, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTH_SIZE_3000_MORE 0, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_4000_4999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DKIM_SIGNATURE 0, SINGLE_URI_IN_BODY 0, SPF_PASS 0, URI_WITH_PATH_ONLY 0, WEBMAIL_SOURCE 0, WEBMAIL_XOIP 0, WEBMAIL_X_IP_HDR 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HAS_XOIP 0, __HTML_AHREF_TAG 0, __HTML_TAG_DIV 0, __HTTPS_URI 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MSGID_APPLEMAIL 0, __MULTIPLE_URI_TEXT 0, __SANE_MSGID 0, __SINGLE_URI_MPART_BOTH 0, __STYLE_RATWARE_NEG 0, __STYLE_TAG 0, __TAG_EXISTS_HTML 0, __TO_MALFORMED_2 0, __TO_NAME 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_MAILTO 0, __URI_NS , __URI_WITH_PATH 0, __blackholes.mail-abuse.org_ERROR , __zen.spamhaus.org_ERROR '
X-Originatororg: vindicia.com
X-Spam-Level:
X-MS-Office365-Filtering-Correlation-ID: 33cc6d18-05fc-4e8c-5217-08d671b7ea60
X-Microsoft-Antispam-Message-Info: 2O34fSdhe85G9Vfh+7ox+2ZboXwLH1d9vK+M2HGNn+PYciWgZB7cdn0NZRYgtPWKKiCbTtr0HtV1F5nzJXvWIvXx8jZaASjC8t/G/q0dufFDS6wMMRTnQE0jYdV2jOthM6cyw3On92A/M2fu0FNo4Cgs28oMXsWPOvNCvlCSaXKSgktlazMHdfb0uYePbBBh0bjN8GA25zgJrMO5vbq2JgN4kBqM1UsQT4wa5RLpSuM9PRrqrt4myPUJ79im9+zbk+jijx1TNzIzDjQQNJVCjZs0OjZk9PsgEOrYsCOlK2asJm7o5+OehAv3R0sPlRoT
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2019.1.3.200616
Amddisc: amdocs_
X-MS-Exchange-Crosstenant-ID: c8eca3ca-1276-46d5-9d9d-a0f2a028920f
To: "bug-TimeDate [...] rt.cpan.org" <bug-TimeDate [...] rt.cpan.org>
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR06MB5456;
X-Exchange-Antispam-Report-Cfa-Test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231475)(944501520)(52105112)(6041310)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:VI1PR06MB5456;BCL:0;PCL:0;RULEID:;SRVR:VI1PR06MB5456;
X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(136003)(346002)(396003)(39860400002)(376002)(189003)(199004)(33896004)(71190400001)(186003)(71200400001)(97736004)(102836004)(6506007)(14454004)(81156014)(6306002)(54896002)(476003)(36756003)(7736002)(5660300001)(82746002)(26005)(5640700003)(99286004)(81166006)(3846002)(478600001)(83716004)(8676002)(6436002)(66066001)(6486002)(2501003)(6116002)(8936002)(86362001)(316002)(33656002)(53936002)(256004)(558084003)(6916009)(486006)(2351001)(9686003)(6512007)(2906002)(106356001)(68736007)(105586002)(25786009);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR06MB5456;H:VI1PR06MB5824.eurprd06.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1;
X-MS-Exchange-Crosstenant-Network-Message-ID: 33cc6d18-05fc-4e8c-5217-08d671b7ea60
X-Spam-Status: No, score=-1.789 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, HTML_MESSAGE=0.001, T_DKIM_INVALID=0.01] autolearn=no
X-Microsoft-Exchange-Diagnostics: 1;VI1PR06MB5456;6:YDP+lglgp9Gf9dd8wS1FtLtecD31jS8ATXJA6qbXyCEC8tI9N83QJO3bVJLHW/AqRB9lKTzddO4QU2r3/4fmmiKydltheFjwr/wEkBE78KqE1S9A8szi2Xcrw6JLYJ94REjEl+rSWDQS6JYKEUxXgT6mMgzD2Od0fUf2qe0UX5MftT8CwtmDC2QRHaprB495/jnDPstEWnYG1N/N5PUUyc7TAtSjT+BQ4o2yH5jqArLJZKEovf62yPh6e+uj0fvEBVfoPNNhkKZ3EFHtFw16vKo4Ka7r5VZkV8H2Ljw21B/XjDV87233J5IGB5lixlH6lixVAOGzZG5HhdyiWjM/PZUkXvWKWTdxHgxlTug/2MVzitPktdxPLGqlVEPZ4KetkrQfa6ZMY0eX86+3fqRsTkSVMaBHaWgjtj0F5vA9EoRTP2p2TUCwexLQBMxsMPceRmL6W0CqswW7GDDQDlLwZQ==;5:mh6+yf5PVLMgYIKZmZTsU7nBgwsMZtxAKzggvxWiWKzFGcC8iwNU3Ah3yXOLA1+bNE8hL52Qz5MNin18Q18WxLUM7ktFaZE0Dyyp8u2cMUMuo18t9Sc4+tMtcfD4PKGkqVGQ6u/p1cpCVx3CfMusYMFrEdsKuBABwHNM1qxuoZRglRT+ps0NDOwAWvId8oNr++6n/7+MMT0Y+5rm9TeIJg==;7:Opnpc5gf6o8YFy/M6fDJzzyrodr2OYycH2m+cjKu9fRQw39ND/wsuS817+AW62xxlI7FzlxIrius6znhy0Q7EuOYbmyKCKJqp5nJ5KrmeC3BudbCbU18lDIUJre+XrdYOUf6+gMCup18ONraIicz1g==
X-MS-Traffictypediagnostic: VI1PR06MB5456:
Received-SPF: None (protection.outlook.com: vindicia.com does not designate permitted sender hosts)
X-RT-Interface: API
Content-Language: en-US
Message-ID: <77AAD249-DA8C-4E7F-BA9F-EF2A32B2DAD3 [...] amdocs.com>
X-MS-Tnef-Correlator:
X-Microsoft-Antispam-PRVS: <VI1PR06MB54563B9631ECF8CC8C936A9BC38D0 [...] VI1PR06MB5456.eurprd06.prod.outlook.com>
Return-Path: <blake [...] vindicia.com>
X-RT-Mail-Extension: timedate
X-Original-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
X-MS-Exchange-Crosstenant-Originalarrivaltime: 03 Jan 2019 20:13:24.3688 (UTC)
X-Forefront-PRVS: 0906E83A25
X-MS-Has-Attach:
Thread-Topic: [rt.cpan.org #128158]
X-Greylist: delayed 64 seconds by postgrey-1.34 at xx1.develooper.com; Thu, 03 Jan 2019 12:14:37 PST
X-Originating-Ip: [12.236.30.22]
Accept-Language: en-US
From: Blake Thomas <blake [...] vindicia.com>
X-MS-Exchange-Transport-Crosstenantheadersstamped: VI1PR06MB5456
RT-Message-ID: <rt-4.0.18-24905-1546546485-1274.128158-0-0 [...] rt.cpan.org>
Content-Length: 0
MIME-Version: 1.0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
X-RT-Original-Encoding: utf-8
Content-Length: 523
Download (untitled) / with headers
text/plain 523b
I don’t think it’s a problem with Time::Local – the real issue is that strptime will subtract 1900 from the yhear number even if you pass in a date with a 4-digit year. Switching to timelocal_modern would completely break str2time for any date after 1900. This email and the information contained herein is proprietary and confidential and subject to the Amdocs Email Terms of Service, which you may review at https://www.amdocs.com/about/email-terms-of-service <https://www.amdocs.com/about/email-terms-of-service>
MIME-Version: 1.0
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: base64
X-RT-Original-Encoding: utf-8
Content-ID: <88A749B925BB8542A04FA60402F4D25F [...] eurprd06.prod.outlook.com>
Content-Length: 2380
MIME-Version: 1.0
X-Spam-Status: No, score=-1.899 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001] autolearn=ham
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
X-RT-Interface: API
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 2002:a9d:3e88:: with SMTP id b8mr32410088otc.261.1546546781945; Thu, 03 Jan 2019 12:19:41 -0800 (PST)
Message-ID: <CAA5ujgk1+gVQoxV4Rj2sMwJp4V3GRnqMnhO+8dy4-cS1mj01MQ [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary="0000000000009114f2057e937b04"
X-Spam-Score: -1.899
X-Google-SMTP-Source: ALg8bN7lWU6OyZNgTVSQ3V8MBtJJlk1asKXRACtnXnue5Kfn0sY7RKPIbr9pdGgwlS2mbzxuIJg0Ze63aPbtqFjUmVQ=
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] baz-com.20150623.gappssmtp.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 9A89B240272 for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 Jan 2019 15:19:53 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0HsWuXifadR0 for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 Jan 2019 15:19:51 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 7A596240123 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 15:19:51 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id EBC601221E2 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 12:19:49 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id D277512220C for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 12:19:43 -0800 (PST)
Received: from mail-ot1-f68.google.com (mail-ot1-f68.google.com [209.85.210.68]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 652541221E2 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 12:19:42 -0800 (PST)
Received: by mail-ot1-f68.google.com with SMTP id s5so30395913oth.7 for <bug-TimeDate [...] rt.cpan.org>; Thu, 03 Jan 2019 12:19:42 -0800 (PST)
Delivered-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
Subject: [rt.cpan.org #128158]
Return-Path: <beebop [...] baz.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baz-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=yYayxERaMyJ0ClrvgXk0F/VWZCys/7HslNTjS98Syz4=; b=m8U7IlBEk2T4VZ0x0O/gxdtMaKTP5lTdEl7ziWorjZW3VVQJWX5+DbPY3tWOO5LYDS 76N6Hyzg2zOwLf8iuv9OfAdoNpbOxzhgF2Si80kV+8duLr05JAwJ/P2LKwWTrALV6rg9 INXlhO237mJDYQMXQlFGnm0NrCYnMZIRBHqSyGYmNtWaz2TAfCTii7gzsNFROOVWZaTN 3GJQpFDba5HmyViwzsBbe7p5psYkJzU88xd1wMIrNHkujJ0dTc92jIFd0kxXAoAbursb k52zgdUgHBohBRJ6xh44REHszg5kiHYzlTPmk9jHsfJFcKYeH8X3NkTU3wi7q9//n6Hg 5B9A==
X-Original-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
X-RT-Mail-Extension: timedate
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yYayxERaMyJ0ClrvgXk0F/VWZCys/7HslNTjS98Syz4=; b=heObDu8zjlmW01wW6iPBKqSqwNr69mKUlZtrh/AHfudCwZ6EDizM5WIvTUVKIptr+s zuXyYYq/mLIlpiHGrYrVeU1ps1b+qRAciYk/RPLCYX2bzXfoK/ymwp9GonAL3uf4v1WF IUBEmLoLPO7hqvrMpbNlqcsFEjwyw7He1d6xckIO0R4jdNH/7vhSsOOpuI5Jun2rMBPp vcP6oUNjvaOaeK+N/+mc2s7pJleyKTVC2Af9lM5D3jVa5JPyCHB8wWIVt6VBybDfy4pt VNIudUVmlxracpGuXuRKTTOa57+bcMQZbqHhDt74m/9t+eoeTpjOGQSomZKJowy/5Z0s aIbQ==
Date: Thu, 3 Jan 2019 12:19:27 -0800
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_NO_HTTP 0.1, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0, BODYTEXTP_SIZE_400_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_300_399 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DATE_TZ_NA 0, DKIM_SIGNATURE 0, NO_URI_HTTPS 0, SMALL_BODY 0, SPF_NONE 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FUR_RDNS_GMAIL 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HELO_GMAIL 0, __HEX28_LC_BOUNDARY 0, __HTML_TAG_DIV 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __RDNS_WEBMAIL 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_MAILTO 0, __URI_NO_WWW 0, __URI_NS , __X_GOOGLE_DKIM_SIGNATURE 0, __YOUTUBE_RCVD 0, __zen.spamhaus.org_ERROR '
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2019.1.3.200916
To: bug-TimeDate [...] rt.cpan.org
X-GM-Message-State: AJcUukeFdz3/Sp1NdDmiBXGgrA7+1jFYg9FoissLyOy+Hsf41y2gW/pz snKH76GNTrx1MW9NNqM7b4SrAP6i7B6wQK0l+cUhgls6
From: Blake Thomas <beebop [...] baz.com>
RT-Message-ID: <rt-4.0.18-17760-1546546794-1012.128158-0-0 [...] rt.cpan.org>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 64
Whoops, probably shouldn't have sent that from my work email :p
content-type: text/html; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 89
MIME-Version: 1.0
X-Spam-Status: No, score=-1.899 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001] autolearn=ham
In-Reply-To: <CAA5ujgk1+gVQoxV4Rj2sMwJp4V3GRnqMnhO+8dy4-cS1mj01MQ [...] mail.gmail.com>
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
X-RT-Interface: API
References: <CAA5ujgk1+gVQoxV4Rj2sMwJp4V3GRnqMnhO+8dy4-cS1mj01MQ [...] mail.gmail.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 2002:a9d:3e88:: with SMTP id b8mr32645139otc.261.1546555214620; Thu, 03 Jan 2019 14:40:14 -0800 (PST)
Message-ID: <CAA5ujgnPYD1c-0sCZcNTDOiF+jJDyrxioM1-GqOwPA19f=GQ-g [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary="000000000000317985057e957292"
X-Spam-Score: -1.899
X-Google-SMTP-Source: ALg8bN4A2/52oMSq4r2uBEvdWceuOUlAd+2vkTz1BOcRLuWi5kMu1XlpcnuVKKNPRUol8f+oaNuydlGidBMcsq3dcWA=
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] baz-com.20150623.gappssmtp.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 8214A24034D for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 Jan 2019 17:40:23 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n3QRdGfg8C-K for <cpan-bug+TimeDate [...] hipster.bestpractical.com>; Thu, 3 Jan 2019 17:40:21 -0500 (EST)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id 60668240123 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 17:40:21 -0500 (EST)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 0C714122319 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 14:40:20 -0800 (PST)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 592B91222E0 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 14:40:17 -0800 (PST)
Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id E8AC711DBE0 for <bug-TimeDate [...] rt.cpan.org>; Thu, 3 Jan 2019 14:40:15 -0800 (PST)
Received: by mail-ot1-f49.google.com with SMTP id i20so30726617otl.0 for <bug-TimeDate [...] rt.cpan.org>; Thu, 03 Jan 2019 14:40:15 -0800 (PST)
Delivered-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
Subject: [rt.cpan.org #128158]
Return-Path: <beebop [...] baz.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baz-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=zi0TmBxZDlgXDy1qDsE4B5pDMbgc4aSxnHoS+ZPBcMM=; b=HJ1Q6hLxDWEnWVXfk2yCIsgUo09ZbjNyV1TBxQpC1IaPHZ7s5Oo6yuX4zYyA+73BRv LE9ROEo5HTlt2YVlI2Ti8eegTFQhE55mfPbKO+Hi3soTnr185vLA9PfalCo9WOQygsxD /njoJvR+1rbJY1PIwa7P9ynwrhx+HOJAq14Uv9JvG0XiYY4dMQocl1YLfsgzKMTi2TMD CIAXf703aRxaKvdi9fSfqNiijsU+GwWupb8gsuC/3/peoM2QTxi5WK0oYDhKnD7sT91B 919yf/EQytyfYq8ByRclwNn6veF33G1loIM2I0btE7Y7K+xrLxY4vW8gZp+M5eStxdX5 Wm3A==
X-Original-To: cpan-bug+TimeDate [...] hipster.bestpractical.com
X-RT-Mail-Extension: timedate
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=zi0TmBxZDlgXDy1qDsE4B5pDMbgc4aSxnHoS+ZPBcMM=; b=Eo6AlNYTfwcYpSgOJIYhCJnHOKCk3ns5t8yHM/ofNb4sFDdoDhn8Loc2YJGOdbhXpq s0/a0u8g1wPbiYSwfTgoYLi22I/1f0hlqGn1m3CmTh3qV3euJ/EXMGxmTI1AEiTNEYne quIBXXK+3IUWy9D8Iy35nFr5o4NDPsTzC6vk3CNTqPa+rB6NYVs/zgBUgn1ANWR5GoVE wFH32Voxjo8cenHKTODTZzzNZ+OrNdcprgtqRzTsnLBBOgzY98l3Ee6VE5pFwrwz6QEq bhYEVS0wQMLUc7rP2PHzO0XLXXJuBkBu2DQJ9UPGXawZG2HlHT6ZcZOvOtSXRAH6atUz xiyg==
Date: Thu, 3 Jan 2019 14:39:59 -0800
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_NO_HTTP 0.1, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0, BODYTEXTP_SIZE_400_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_900_999 0, DATE_TZ_NA 0, DKIM_SIGNATURE 0, IN_REP_TO 0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, NO_URI_HTTPS 0, REFERENCES 0, SMALL_BODY 0, SPF_NONE 0, WEBMAIL_SOURCE 0, __ANY_URI 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FUR_RDNS_GMAIL 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HELO_GMAIL 0, __HEX28_LC_BOUNDARY 0, __HTML_TAG_DIV 0, __IN_REP_TO 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __RDNS_WEBMAIL 0, __REFERENCES 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_MAILTO 0, __URI_NO_WWW 0, __URI_NS , __X_GOOGLE_DKIM_SIGNATURE 0, __YOUTUBE_RCVD 0, __zen.spamhaus.org_ERROR '
X-Spam-Level:
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2019.1.3.223316
To: bug-TimeDate [...] rt.cpan.org
X-GM-Message-State: AJcUukeqJI3yCATpA971dVsH5IiN7KjcK6ZLxg2cqju+6QzBaWxKXKcR oD0xhNeKfS4EUakVH/ohzny3IDZg3geDujtSQEhtYoJO
From: Blake Thomas <beebop [...] baz.com>
RT-Message-ID: <rt-4.0.18-3075-1546555224-1093.128158-0-0 [...] rt.cpan.org>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 227
Download (untitled) / with headers
text/plain 227b
Actually upon closer inspection I think there are problems in both Date::Parse and Time::Local - Date::Parse gives timelocal a 2-digit year sometimes when it shouldn't be and then timelocal is doing the wrong thing with it. Show quoted text
>
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 426


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.