From: Swen T. <sw...@me...> - 2002-09-09 11:28:17
|
Hi all, today I tried to install SPOPS 0.68. Unfortunately, one regression test f= ailed: t/07_utility...............NOK 12# Failed test (t/07_utility.t at lin= e 58) # got: '2002-09- 9' # expected: '2002-09-09' Now I don't know wether this is a problem with the test suite or with SPOPS::Utility::today(). From the perldoc: Return a date (yyyy-mm-dd) for today. But in the source: sub today { return $_[0]->now( { format =3D> '%Y-%m-%e' } ); } And from man strftime: %e Like %d, the day of the month as a decimal number, but a lead=AD ing zero is replaced by a space. (SU) So I think the format should be changed to %Y-%m-%d=20 Greetings, Swen |