--- loncom/interface/loncommon.pm 2002/09/17 15:21:51 1.69 +++ loncom/interface/loncommon.pm 2002/10/29 20:57:31 1.71 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.69 2002/09/17 15:21:51 matthew Exp $ +# $Id: loncommon.pm,v 1.71 2002/10/29 20:57:31 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1222,6 +1222,22 @@ sub maketime { } +######################################### +# +# Retro-fixing of un-backward-compatible time format + +sub unsqltime { + my $timestamp=shift; + if ($timestamp=~/^(\d+)\-(\d+)\-(\d+)\s+(\d+)\:(\d+)\:(\d+)$/) { + $timestamp=&maketime( + 'year'=>$1,'month'=>$2,'day'=>$3, + 'hours'=>$4,'minutes'=>$5,'seconds'=>$6); + } + return $timestamp; +} + +######################################### + sub findallcourses { my %courses=(); my $now=time; @@ -1283,7 +1299,8 @@ sub domainlogo { my $domain = &determinedomain(shift); # See if there is a logo if (-e '/home/httpd/html/adm/lonDomLogos/'.$domain.'.gif') { - return ''; + return ''; } elsif(exists($Apache::lonnet::domaindescription{$domain})) { return $Apache::lonnet::domaindescription{$domain}; } else { @@ -1387,7 +1404,7 @@ END $bodytag +
- $messages