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

raeburn lon-capa-cvs@mail.lon-capa.org
Mon, 10 Oct 2005 13:36:39 -0000


raeburn		Mon Oct 10 09:36:39 2005 EDT

  Modified files:              
    /loncom/interface	lonwhatsnew.pm 
  Log:
  Better display of reset times (human readable instead of UNIX time). 
  
  
Index: loncom/interface/lonwhatsnew.pm
diff -u loncom/interface/lonwhatsnew.pm:1.31 loncom/interface/lonwhatsnew.pm:1.32
--- loncom/interface/lonwhatsnew.pm:1.31	Wed Sep 21 14:20:22 2005
+++ loncom/interface/lonwhatsnew.pm	Mon Oct 10 09:36:35 2005
@@ -1,5 +1,5 @@
 #
-# $Id: lonwhatsnew.pm,v 1.31 2005/09/21 18:20:22 raeburn Exp $
+# $Id: lonwhatsnew.pm,v 1.32 2005/10/10 13:36:35 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -645,6 +645,9 @@
                 $stats{$part}{attempts} = $av_attempts;
                 $stats{$part}{users} = $users;
 		$lastreset{$part} = $resourcetracker{$symb."\0".$part."\0resettime"};
+                if ($lastreset{$part}) {
+                    $lastreset{$part} = &Apache::lonnavmaps::timeToHumanString($lastreset{$part});
+                }
                 $warning = 1;
             }
         }