--- loncom/interface/loncommon.pm 2002/09/14 21:01:38 1.68 +++ loncom/interface/loncommon.pm 2002/10/18 13:49:49 1.70 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.68 2002/09/14 21:01:38 albertel Exp $ +# $Id: loncommon.pm,v 1.70 2002/10/18 13:49:49 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1013,8 +1013,8 @@ sub messagewrapper { # ------------------------------------------------------------- Aboutme Wrapper sub aboutmewrapper { - my ($link,$un,$do)=@_; - return "$link"; + my ($link,$username,$domain)=@_; + return "$link"; } # ------------------------------------------------------------ Syllabus Wrapper @@ -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;