use syspref date format for manual due date

NOTE: will fail if user manages to enter date
in wrong format.  This is not a change from before
this patch, but is pointed out.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Galen Charlton 2007-12-20 13:04:55 -06:00 committed by Joshua Ferraro
parent af0b208bdf
commit 26fa7bf58d
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ my $newexpiry = $query->param('dateexpiry');
my ($datedue,$invalidduedate);
if ($duedatespec) {
$datedue = C4::Dates->new($duedatespec,'iso' );
$datedue = C4::Dates->new($duedatespec);
$invalidduedate=1 unless $datedue;
}

View File

@ -226,7 +226,7 @@ No patron matched <span class="ex"><!-- TMPL_VAR name="message" --></span>
Calendar.setup(
{
inputField : "duedatespec",
ifFormat : "%Y-%m-%d",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
button : "CalendarDueDate",
disableFunc : validate1,
dateStatusFunc : validate1,