Skip Menu |

This queue is for tickets about the Time-Piece CPAN distribution.

Report information
The Basics
Id: 72140
Status: resolved
Priority: 0/
Queue: Time-Piece

People
Owner: Nobody in particular
Requestors: 'spro^^*%*^6ut# [...] &$%*c
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 1.17
  • 1.18
  • 1.19
  • 1.20
Fixed in: 1.31_04



Subject: 1.17 regression breaks CGI::Untaint::datetime
$ perl5.13.1 -S pmvers Time::Piece 1.15_01 $ perl5.13.1 -MTime::Piece -le' print Time::Piece->strptime("1950-05-02T11:23:22", "%FT%H:%M:%S")' Tue May 2 11:23:22 1950 $ perl5.13.2 -S pmvers Time::Piece 1.20_01 $ perl5.13.2 -MTime::Piece -le' print Time::Piece->strptime("1950-05-02T11:23:22", "%FT%H:%M:%S")' Error parsing time at /usr/local/lib/perl5/5.13.2/darwin-2level/Time/Piece.pm line 469. I did some experiments and found that it works with Time::Piece 1.16 but not 1.17. This stops CGI::Untaint::datetime from working.
This is related to https://rt.cpan.org/Ticket/Display.html?id=56296 In 1.17, Time::Piece switched from using (often) system strptime to using a bundled one. %F would have worked on systems with glibc, but not all systems. So now CGI::Untaint::datetime is, presumably, portably broken. If https://rt.cpan.org/Ticket/Display.html?id=56296 is fixed, this should be fixed also. I will look at dealing with that ticket on my next round through this bug queue. -- rjbs