--- loncom/homework/structuretags.pm 2022/01/01 16:09:10 1.512.2.24.2.1 +++ loncom/homework/structuretags.pm 2023/09/11 13:46:11 1.512.2.25 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.512.2.24.2.1 2022/01/01 16:09:10 raeburn Exp $ +# $Id: structuretags.pm,v 1.512.2.25 2023/09/11 13:46:11 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1559,8 +1559,7 @@ sub start_problem { $target eq 'tex') { if ($env{'form.markaccess'}) { my @interval=&Apache::lonnet::EXT("resource.0.interval"); - my ($timelimit) = ($interval[0] =~ /^(\d+)/); - my $is_set = &Apache::lonnet::set_first_access($interval[1],$timelimit); + my $is_set = &Apache::lonnet::set_first_access($interval[1],$interval[0]); unless (($is_set eq 'ok') || ($is_set eq 'already_set')) { $firstaccres = $is_set; } @@ -2035,7 +2034,8 @@ ENDJS # computation: # if ($target eq 'web') { - $result .= &Apache::lonhtmlcommon::set_compute_end_time(); + $result .= &Apache::lonhtmlcommon::dash_to_minus_js(). + &Apache::lonhtmlcommon::set_compute_end_time(); # # Closing tags delayed so any tags # not in head can appear inside body, for valid xhtml.