Skip Menu |

This queue is for tickets about the Date-Manip CPAN distribution.

Report information
The Basics
Id: 118458
Status: rejected
Priority: 0/
Queue: Date-Manip

People
Owner: Nobody in particular
Requestors: jwang [...] mitre.org
Cc:
AdminCc:

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



Subject: cygwin install fails due to TZ problems
Date: Fri, 21 Oct 2016 17:12:35 +0000
To: "bug-Date-Manip [...] rt.cpan.org" <bug-Date-Manip [...] rt.cpan.org>
From: "Wang, Jean" <jwang [...] mitre.org>
It appears you have a special hack in your test code because Cygwin does something weird: if ($^O eq 'cygwin') { # Date::Manip doesn't like Cygwin's TZ value. $ENV{TZ} = (split " ",(`date`)[0])[4]; } So obviously you have encountered something in the past. However, the listed doesn't work: jwang@MM216339-PC ~/.cpanm/work/1477069057.18072/Log-Dispatch-FileRotate-1.22 $ perl -e 'print((split " ",(`date`)[0])[4]);' 1:02:50 jwang@MM216339-PC ~/.cpanm/work/1477069057.18072/Log-Dispatch-FileRotate-1.22 $ date Fri, Oct 21, 2016 1:03:01 PM After removing the Cygwin hack: if ($^O eq 'cygwin') { # Date::Manip doesn't like Cygwin's TZ value. #$ENV{TZ} = (split " ",(`date`)[0])[4]; } Everything plays nice: jwang@MM216339-PC ~/.cpanm/work/1477069057.18072/Log-Dispatch-FileRotate-1.22 $ prove -l t/author-pod-syntax.t ..... skipped: these tests are for testing by the author t/basic.t ................. ok t/no-activity-bug.t ....... ok t/signature.t ............. skipped: Set the environment variable TEST_SIGNATURE to enable this test. t/size-with-underscore.t .. ok All tests successful. Files=5, Tests=239, 5 wallclock secs ( 0.06 usr 0.28 sys + 1.39 cusr 2.76 csys = 4.49 CPU) Result: PASS I am currently using the latest Cygwin libraries updated today (perl v5.22.2) on windows 7 enterprise (Windows 7 Enterprise Ver 6.1 Build 7601 Service Pack 1).
The code you are referring to is part of the Log-Dispatch-FileRotate package, NOT Date-Manip. Please file this problem with that module.