--- loncom/interface/lonhtmlcommon.pm 2005/06/06 15:54:28 1.107 +++ loncom/interface/lonhtmlcommon.pm 2005/06/14 02:33:18 1.108 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.107 2005/06/06 15:54:28 www Exp $ +# $Id: lonhtmlcommon.pm,v 1.108 2005/06/14 02:33:18 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -258,7 +258,7 @@ The method used to restrict user input w ############################################## sub date_setter { my ($formname,$dname,$currentvalue,$special,$includeempty,$state, - $no_hh_mm_ss) = @_; + $no_hh_mm_ss,$defhour,$defmin,$defsec) = @_; my $wasdefined=1; if (! defined($state) || $state ne 'disabled') { $state = ''; @@ -282,8 +282,9 @@ sub date_setter { $year += 1900; } unless ($wasdefined) { - $sec=0; - $min=0; + $sec=($defsec?$defsec:0); + $min=($defmin?$defmin:0); + $hour=($defhour?$defhour:0); } my $result = "\n\n"; $result .= <