summaryrefslogtreecommitdiff
path: root/httemplate/misc/process/delay_susp_pkg.html
diff options
context:
space:
mode:
authorivan <ivan>2010-04-09 08:18:24 +0000
committerivan <ivan>2010-04-09 08:18:24 +0000
commit2ab068f449eb97a10e18d20e9dab5ab9faa017e7 (patch)
treef1464912b3f3072cbb4290cfa2a4a26e32165676 /httemplate/misc/process/delay_susp_pkg.html
parent4125a128eaa40c751c89a69c2f9888463a78c6f3 (diff)
fix date parsing when using international dates (package date edit), RT#8027
Diffstat (limited to 'httemplate/misc/process/delay_susp_pkg.html')
-rwxr-xr-xhttemplate/misc/process/delay_susp_pkg.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/misc/process/delay_susp_pkg.html b/httemplate/misc/process/delay_susp_pkg.html
index c7cc7de7c..8649cc235 100755
--- a/httemplate/misc/process/delay_susp_pkg.html
+++ b/httemplate/misc/process/delay_susp_pkg.html
@@ -21,7 +21,7 @@ $cgi->param('pkgnum') =~ /^(\d+)$/ or die "Illegal pkgnum";
$pkgnum = $1;
#untaint date
-str2time($cgi->param('date')) =~ /^(\d+)$/ or die "Illegal date";
+parse_datetime($cgi->param('date')) =~ /^(\d+)$/ or die "Illegal date";
my $date = $1;
$cust_pkg = qsearchs( 'cust_pkg', {'pkgnum'=>$pkgnum} );