summaryrefslogtreecommitdiff
path: root/httemplate/misc/process/cancel_pkg.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/misc/process/cancel_pkg.html')
-rwxr-xr-xhttemplate/misc/process/cancel_pkg.html2
1 files changed, 1 insertions, 1 deletions
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';
}