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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 01 Oct 2002 07:20:31 -0000


albertel		Tue Oct  1 03:20:31 2002 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - Got sick of things constantly being due in 1969
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.57 loncom/interface/lonnavmaps.pm:1.58
--- loncom/interface/lonnavmaps.pm:1.57	Tue Oct  1 03:09:05 2002
+++ loncom/interface/lonnavmaps.pm	Tue Oct  1 03:20:31 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.57 2002/10/01 07:09:05 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.58 2002/10/01 07:20:31 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1071,7 +1071,13 @@
 # now, this is a simple call to localtime. The final function
 # probably belongs in loncommon.
 sub timeToHumanString {
-    return localtime(shift);
+    my ($time) = @_;
+    # zero, '0' and blank are bad times
+    if ($time) {
+	return localtime($time);
+    } else {
+	return 'Never';
+    }
 }
 
 1;