--- loncom/interface/lonsyllabus.pm 2003/09/17 19:45:39 1.23 +++ loncom/interface/lonsyllabus.pm 2003/10/04 20:49:40 1.25 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.23 2003/09/17 19:45:39 www Exp $ +# $Id: lonsyllabus.pm,v 1.25 2003/10/04 20:49:40 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -39,7 +39,7 @@ use Apache::lonlocal; sub handler { my $r = shift; - $r->content_type('text/html'); + &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; return OK if $r->header_only; @@ -176,14 +176,14 @@ ENDDOCUMENT # ---------------------------------------------------------------- Get syllabus if (($syllabus{'uploaded.lastmodified'}) || ($allowed)) { my $lastmod=$syllabus{'uploaded.lastmodified'}; - $lastmod=($lastmod?localtime($lastmod):'never'); + $lastmod=($lastmod?&Apache::lonlocal::locallocaltime($lastmod):&mt('never')); $r->print('
'.&mt('Uploaded').':'. &Apache::loncommon::aboutmewrapper( &Apache::loncommon::plainname($syllabus{'uploaded.name'}, $syllabus{'uploaded.domain'}),$syllabus{'uploaded.name'}, $syllabus{'uploaded.domain'}). - '
Last updated:'. + '
'.&mt('Last updated').':'. $lastmod. '

'); if ($allowed) {