|
From: Chris W. <ch...@cw...> - 2002-09-09 12:38:59
|
On Mon, 2002-09-09 at 07:28, Swen Thuemmler wrote:
> Hi all,
>=20
> today I tried to install SPOPS 0.68. Unfortunately, one regression test f=
ailed:
>=20
> t/07_utility...............NOK 12# Failed test (t/07_utility.t at lin=
e 58)
> # got: '2002-09- 9'
> # expected: '2002-09-09'
>=20
> 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.
>=20
> But in the source:
> sub today { return $_[0]->now( { format =3D> '%Y-%m-%e' } ); }
>=20
> 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)
>=20
> So I think the format should be changed to %Y-%m-%d=20
You are correct, it should, and it's been changed. However, you might
want to upgrade your Test::More -- this test was actually in a SKIP
block since I was having weird timezone issues and couldn't get the test
to succeed.
Thanks!
Chris
--=20
Chris Winters (ch...@cw...)
Building enterprise-capable snack solutions since 1988.
|