--- loncom/interface/loncommon.pm 2008/05/29 19:35:53 1.657 +++ loncom/interface/loncommon.pm 2009/04/15 12:39:07 1.787 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.657 2008/05/29 19:35:53 raeburn Exp $ +# $Id: loncommon.pm,v 1.787 2009/04/15 12:39:07 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -61,6 +61,7 @@ use POSIX qw(strftime mktime); use Apache::lonmenu(); use Apache::lonenc(); use Apache::lonlocal; +use Apache::lonnet(); use HTML::Entities; use Apache::lonhtmlcommon(); use Apache::loncoursedata(); @@ -68,6 +69,7 @@ use Apache::lontexconvert(); use Apache::lonclonecourse(); use LONCAPA qw(:DEFAULT :match); use DateTime::TimeZone; +use DateTime::Locale::Catalog; # ---------------------------------------------- Designs use vars qw(%defaultdesign); @@ -151,7 +153,6 @@ sub ssi_with_retries { # ----------------------------------------------- Filetypes/Languages/Copyright my %language; -my %timezone; my %supported_language; my %cprtag; my %scprtag; @@ -194,22 +195,6 @@ BEGIN { close($fh); } } -# ------------------------------------------------------------------- timezones - { - my $timetabfile = $Apache::lonnet::perlvar{'lonTabDir'}. - '/timezone.tab'; - if ( open(my $fh,"<$timetabfile") ) { - while (my $line = <$fh>) { - next if ($line=~/^\#/); - chomp($line); - my $value=$line; - $value=~s/\_/ /g; - $timezone{$line}=$value; - } - close($fh); - } - } - # ------------------------------------------------------------------ copyrights { my $copyrightfile = $Apache::lonnet::perlvar{'lonIncludes'}. @@ -286,7 +271,7 @@ BEGIN { } } &Apache::lonnet::logthis( - "INFO: Read file types"); + "INFO: Read file types"); $readit=1; } # end of unless($readit) @@ -421,7 +406,7 @@ sub studentbrowser_javascript { || ($env{'request.role'}=~/^(au|dc|su)/) ) { return ''; } return (<<'ENDSTDBRW'); -