--- loncom/interface/lonwhatsnew.pm 2009/05/04 21:44:54 1.92 +++ loncom/interface/lonwhatsnew.pm 2009/05/06 19:25:56 1.93 @@ -1,5 +1,5 @@ # -# $Id: lonwhatsnew.pm,v 1.92 2009/05/04 21:44:54 lueken Exp $ +# $Id: lonwhatsnew.pm,v 1.93 2009/05/06 19:25:56 droeschl Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1153,8 +1153,6 @@ sub getnormalmail { # Check for unread mail in course my $msgcount = 0; - my $datetime; - my @messages = sort(&Apache::lonnet::getkeys('nohist_email')); foreach my $message (@messages) { my $msgid=&escape($message); @@ -1164,7 +1162,7 @@ sub getnormalmail { if (defined($sendtime) && $sendtime!~/error/) { my $numsendtime = $sendtime; if ($status eq 'new') { - $sendtime = &Apache::lonlocal::locallocaltime($sendtime,'',\$datetime); + $sendtime = &Apache::lonlocal::locallocaltime($sendtime); $msgcount ++; if ($shortsubj eq '') { $shortsubj = &mt('No subject'); @@ -1188,7 +1186,6 @@ sub getcritmail { # Check for critical messages in course my %what=&Apache::lonnet::dump('critical'); my $result = ''; - my $datetime; my $critmsgcount = 0; foreach my $msgid (sort(keys(%what))) { my ($sendtime,$shortsubj,$fromname,$fromdom,$status,$fromcid)= @@ -1196,7 +1193,7 @@ sub getcritmail { if (($fromcid) && ($fromcid eq $env{'request.course.id'})) { if (defined($sendtime) && $sendtime!~/error/) { my $numsendtime = $sendtime; - $sendtime = &Apache::lonlocal::locallocaltime($sendtime,'',\$datetime); + $sendtime = &Apache::lonlocal::locallocaltime($sendtime); $critmsgcount ++; if ($shortsubj eq '') { $shortsubj = &mt('No subject'); @@ -1617,7 +1614,6 @@ sub display_versionchanges { sub display_rolechanges { my ($r,$chgcount,$changed,$interval,$crstype) = @_; my $now = time(); - my $datetime; my %lt = &Apache::lonlocal::texthash( 'user' => 'User', 'tich' => 'Time of change', @@ -1655,7 +1651,7 @@ sub display_rolechanges { my $link = &Apache::loncommon::aboutmewrapper(&Apache::loncommon::plainname($uname,$udom),$uname,$udom); $r->print(''. - ''.&Apache::lonlocal::locallocaltime($item,'',\$datetime).''. + ''.&Apache::lonlocal::locallocaltime($item).''. ''.$link.''. ''.$role.''. ''.$section.''.