From bfcc5b00f98df8c0543d8a941c1897e77c5548d2 Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Thu, 29 Nov 2007 17:43:11 -0600 Subject: [PATCH] Dates.pm - ongoing integration, acqui/histsearch.pl Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- acqui/histsearch.pl | 4 ++-- t/Date.t | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/acqui/histsearch.pl b/acqui/histsearch.pl index 2c4685af9c..08e3f842ad 100755 --- a/acqui/histsearch.pl +++ b/acqui/histsearch.pl @@ -53,7 +53,7 @@ use CGI; use C4::Auth; # get_template_and_user use C4::Output; use C4::Acquisition; -use C4::Date; +use C4::Dates qw(format_date_in_iso); my $input = new CGI; my $title = $input->param('title'); @@ -88,7 +88,7 @@ $template->param( name => $name, from_placed_on => $from_placed_on, to_placed_on => $to_placed_on, - DHTMLcalendar_dateformat => get_date_format_string_for_DHTMLcalendar(), + DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(), ); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/t/Date.t b/t/Date.t index b18280239c..16ced3728a 100755 --- a/t/Date.t +++ b/t/Date.t @@ -1,3 +1,6 @@ +print "WARNING: This module (C4::Date) is obsolete. +Developers should use C4::Dates instead!\n"; + BEGIN { $| = 1; print "1..4\n"; } END {print "not ok 1\n" unless $loaded;} use C4::Date; -- 2.20.1