[Koha-devel] Undocumented Behaviour in C4::Dates

Owen Leonard oleonard at myacpl.org
Wed May 4 14:37:15 CEST 2011


> If you look at the output from
> t/Dates.t creating a date with 0/1/1952 (I'm using dmy here) returns a
> formatted version of 31/12/1951. i.e. ) has a "kind of -1" effect
>
> Odd? Confused? Poor Interface?

Does it take negative numbers too? -3/1/1952? If it works consistently
and correctly I would say it's a feature: It lets you do simple math
on a day of the month and get back a valid date.

  -- Owen

-- 
Web Developer
Athens County Public Libraries
http://www.myacpl.org


More information about the Koha-devel mailing list