]> git.koha-community.org Git - koha.git/commit
C4::Dates - carp if passed semantically invalid date
authorGalen Charlton <galen.charlton@liblime.com>
Thu, 20 Dec 2007 21:17:25 +0000 (15:17 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 21 Dec 2007 01:16:37 +0000 (19:16 -0600)
commit3ebb4ec84f517d315177bebca15d6eee445016c8
tree16482b5a8bbd33fa93684d7aca840cdb08945c12
parent69fee47751e320f43db7b40be1cb436928ad84d4
C4::Dates - carp if passed semantically invalid date

When creating a new C4::Dates object, now carps
if the supplied date and/or time is semantically
invalid, i.e., 2007-01-32 will pass the regex
check but is not a valid date (there being no
32nd of January).

As the C4::Dates API is nailed down, these may
be converted to croaks in the future.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Dates.pm