[LON-CAPA-cvs] cvs: loncom /interface lonparmset.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 05 Mar 2007 02:46:45 -0000


albertel		Sun Mar  4 21:46:45 2007 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  - BUG#5214, missing timezone info in the table mode parm setter
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.360 loncom/interface/lonparmset.pm:1.361
--- loncom/interface/lonparmset.pm:1.360	Tue Feb 27 15:35:22 2007
+++ loncom/interface/lonparmset.pm	Sun Mar  4 21:46:45 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.360 2007/02/27 20:35:22 www Exp $
+# $Id: lonparmset.pm,v 1.361 2007/03/05 02:46:45 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -554,7 +554,8 @@
             }
             $result=~s/\s+$//;
         } elsif (&isdateparm($type)) {
-            $result = localtime($value).&date_sanity_info($value);
+            $result = &Apache::lonlocal::locallocaltime($value).
+		&date_sanity_info($value);
         } else {
             $result = $value;
         }
@@ -3379,8 +3380,8 @@
         $r->print('<hr /><strong>Or</strong> you may enter a new metadata field name.<form method="post" action="/adm/parmset?action=addmetadata"');
         $r->print('<input type="text" name="fieldname" /><br />');
         $r->print('<input type="submit" value="Add Metadata Field" />');
-        $r->print('</form>');
     }
+    $r->print('</form>');
 }
 sub setrestrictmeta {
     my ($r)=@_;