From: Alexander Marx Date: Thu, 4 Feb 2016 11:04:47 +0000 (+0100) Subject: Captive-Portal: fix wrong expiretime of unused vouchers X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41470bea5ceab69f691d93734c129bc219db522f;p=people%2Fms%2Fipfire-2.x.git Captive-Portal: fix wrong expiretime of unused vouchers Signed-off-by: Alexander Marx --- diff --git a/html/cgi-bin/captive.cgi b/html/cgi-bin/captive.cgi index 841f946b3c..a42e398154 100755 --- a/html/cgi-bin/captive.cgi +++ b/html/cgi-bin/captive.cgi @@ -460,7 +460,7 @@ END if ($voucherhash{$key}[2] eq '0'){ $endtime=$Lang::tr{'Captive nolimit'}; }else{ - $endtime=sub{sprintf '%02d.%02d.%04d %02d:%02d', $_[3], $_[4]+1, $_[5]+1900, $_[2], $_[1] }->(localtime($voucherhash{$key}[0]+$voucherhash{$key}[2])); + $endtime=sub{sprintf '%02d.%02d.%04d %02d:%02d', $_[3], $_[4]+1, $_[5]+1900, $_[2], $_[1] }->(localtime(time()+$voucherhash{$key}[2])); } if ($count % 2){