From 9f351b4a4df08d607aa0d647709b06cbea1c5ffe Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 9 Apr 2010 08:18:37 +0000 Subject: fix date parsing when using international dates (package date edit), RT#8027 --- httemplate/misc/process/cancel_pkg.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/misc/process/cancel_pkg.html') diff --git a/httemplate/misc/process/cancel_pkg.html b/httemplate/misc/process/cancel_pkg.html index 669af9c87..e17872c06 100755 --- a/httemplate/misc/process/cancel_pkg.html +++ b/httemplate/misc/process/cancel_pkg.html @@ -44,7 +44,7 @@ my $date = time; if ($method eq 'expire' || $method eq 'adjourn'){ #untaint date $date = $cgi->param('date'); - str2time($cgi->param('date')) =~ /^(\d+)$/ or die "Illegal date"; + parse_datetime($cgi->param('date')) =~ /^(\d+)$/ or die "Illegal date"; $date = $1; $method = ($method eq 'expire') ? 'cancel' : 'suspend'; } -- cgit v1.2.1