--- loncom/interface/loncommon.pm 2008/05/29 02:58:41 1.655 +++ loncom/interface/loncommon.pm 2008/05/31 23:53:18 1.659 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.655 2008/05/29 02:58:41 raeburn Exp $ +# $Id: loncommon.pm,v 1.659 2008/05/31 23:53:18 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -67,6 +67,7 @@ use Apache::loncoursedata(); use Apache::lontexconvert(); use Apache::lonclonecourse(); use LONCAPA qw(:DEFAULT :match); +use DateTime::TimeZone; # ---------------------------------------------- Designs use vars qw(%defaultdesign); @@ -634,6 +635,27 @@ ENDSCRT return $jscript; } +sub select_timezone { + my ($name,$selected,$onchange,$includeempty)=@_; + my $output='