Last modified by khushi kapoor on 2018/09/26 16:20

From version Icon 71.1 Icon
edited by Henry Story
on 2010/06/16 15:39
Change comment: There is no comment for this version
To version Icon 72.1 Icon
edited by Henry Story
on 2010/06/17 21:08
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -127,12 +127,10 @@
127 127   $cert.setSubjectCommonName( $request.cn )
128 128  
129 129   #set ($hours = $request.getParameter('hours') )
130 + $cert.startEarlier("2")
130 130  
131 131   #if ($hours && $hours ne "")
132 - #set ( $hf = $mathtool.toDouble($hours) + 2)
133 - $cert.addDurationInHours( $hf.toString() )
134 - #else
135 - $cert.addDurationInHours( "2" )
133 + $cert.addDurationInHours( $hours)
136 136   #end
137 137  
138 138   #set ($days = $request.getParameter('days') )
... ... @@ -140,11 +140,6 @@
140 140   $cert.addDurationInDays( $days )
141 141   #end
142 142  
143 - #set( $startTme = $xwiki.jodatime.getMutableDateTime() )
144 - $startTme.add( -7200000 )
145 - $cert.setStartDate( $startTme.toDate() )
146 -
147 -
148 148   #set($s = $cert.getSerialisation())
149 149  
150 150   #if( $request.getParameter('showCert') eq "yes")