[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm

www lon-capa-cvs-allow@mail.lon-capa.org
Mon, 10 Sep 2007 13:31:39 -0000


www		Mon Sep 10 09:31:39 2007 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  Don't show English dates
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.273 loncom/homework/lonhomework.pm:1.274
--- loncom/homework/lonhomework.pm:1.273	Fri Aug 31 15:32:57 2007
+++ loncom/homework/lonhomework.pm	Mon Sep 10 09:31:39 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.273 2007/08/31 19:32:57 albertel Exp $
+# $Id: lonhomework.pm,v 1.274 2007/09/10 13:31:39 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -436,7 +436,7 @@
 		$date = &mt("an indeterminate date"); $passed = 0;
 	    } else {
 		if (time < $date) { $passed = 0; } else { $passed = 1; }
-		$date = localtime $date;
+		$date = &Apache::lonlocal::locallocaltime($date);
 	    }
 	    if (!$passed) { $type=$temp; last; }
 	}