--- loncom/homework/lonhomework.pm 2000/12/19 23:22:22 1.22 +++ loncom/homework/lonhomework.pm 2000/12/21 18:13:33 1.24 @@ -88,9 +88,14 @@ sub check_date { $datemsg = "is due at $date"; } elsif ($type eq 'answerdate') { $status='CLOSED'; - $datemsg = "was due as $lastdate, and asnswers will be available at $date"; + $datemsg = "was due as $lastdate, and answers will be available at $date"; } &Apache::lonxml::debug("sending back :$status:$datemsg:"); + if ($ENV{'request.state'} eq "construct") { + &Apache::lonxml::debug("in construction ignoring dates"); + $status='CAN_ANSWER'; + $datemsg='is in under construction'; + } return ($status,$datemsg); }