--- loncom/interface/lonannounce.pm 2004/02/17 01:36:14 1.26 +++ loncom/interface/lonannounce.pm 2004/02/17 01:46:34 1.27 @@ -1,7 +1,7 @@ # The LearningOnline Network # Announce # -# $Id: lonannounce.pm,v 1.26 2004/02/17 01:36:14 www Exp $ +# $Id: lonannounce.pm,v 1.27 2004/02/17 01:46:34 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -161,6 +161,7 @@ sub plaincell { if ($start!=$end) { $fullmsg.=' - '.&Apache::lonlocal::locallocaltime($end); } + $msg=~s/INTERNAL\://gs; $fullmsg.=': '.$msg; $fullmsg=&HTML::Entities::encode($fullmsg,'<>&"\''); $fullmsg=~s/&/\\&/g; @@ -178,6 +179,7 @@ sub listcell { if ($_) { my ($courseid,$start,$end,@msg)=split(/\@/,$_); my $msg=join('@',@msg); + $msg=~s/INTERNAL\://gs; my $fullmsg=&Apache::lonlocal::locallocaltime($start); if ($start!=$end) { $fullmsg.=&mt(' to '). @@ -202,7 +204,11 @@ sub showday { my %th=&Apache::loncommon::timehash($tk); my ($nextday,$nextmonth)=&nextday(%th); my $outp=''; - my $oneday=24*3600; + if ($mode) { + my $oneday=24*3600; + $tk-=$oneday; + $nextday+=$oneday; + } foreach (keys %allcal) { my ($course,$startdate,$enddate)=($_=~/^(\w+)\@(\d+)\_(\d+)$/); if (($startdate<$nextday) && ($enddate>$tk)) {