On 06/15/2017 02:24 PM, Slaven_Rezic via RT wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=122106 >
>
> If the latest development version of Time::Piece is installed (ESAYM/Time-Piece-1.31_03.tar.gz) then the test suite fails. (I can attach the test log if required, but the failure can be easily replicated)
>
Sweet, thanks for the heads up.
Changing the test suite's line:
Time::Piece->strptime(sprintf('%02d', $i), '%m')
to:
Time::Piece->strptime(sprintf('%02d %02d', $i, $i), '%m %d')
fixes the issue. I changed strptime quite a bit over a few months. Can't
remember all the details but I remember wanting to set some sane
defaults for the internal time structure. Since in the above case only a
month is being passed in, the day is defaulting to 0, which is not
right. I'll look into it.
Regards,