From 26fa7bf58dd04a023a3a0cc412cf741aa9a9abdf Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 20 Dec 2007 13:04:55 -0600 Subject: [PATCH] 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 Signed-off-by: Joshua Ferraro --- circ/circulation.pl | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 2fad429ae5..e1f3e50fd5 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -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; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index d4ac1d5ac0..a10961a568 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -226,7 +226,7 @@ No patron matched Calendar.setup( { inputField : "duedatespec", - ifFormat : "%Y-%m-%d", + ifFormat : "", button : "CalendarDueDate", disableFunc : validate1, dateStatusFunc : validate1, -- 2.39.5