[LON-CAPA-cvs] cvs: loncom /html/res/adm/pages menu.html

www lon-capa-cvs@mail.lon-capa.org
Thu, 25 Jul 2002 18:43:14 -0000


www		Thu Jul 25 14:43:14 2002 EDT

  Modified files:              
    /loncom/html/res/adm/pages	menu.html 
  Log:
  Date representation is different on Exploder than on Netscape and Mozilla.
  
  
Index: loncom/html/res/adm/pages/menu.html
diff -u loncom/html/res/adm/pages/menu.html:1.62 loncom/html/res/adm/pages/menu.html:1.63
--- loncom/html/res/adm/pages/menu.html:1.62	Wed Jul 24 15:48:58 2002
+++ loncom/html/res/adm/pages/menu.html	Thu Jul 25 14:43:14 2002
@@ -4,7 +4,7 @@
 Remote Control
 
 //
-// $Id: menu.html,v 1.62 2002/07/24 19:48:58 www Exp $
+// $Id: menu.html,v 1.63 2002/07/25 18:43:14 www Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -101,7 +101,12 @@
     var mons=""+(clock.getMonth()+1);
     if (mons.length<2) { mons="0"+mons; }
     var years=""+clock.getYear();
-    years=years.substring(1,3);
+
+    if (years>1000) {
+       years=years.substring(2,4);
+    } else {
+       years=years.substring(1,3);
+    }
     statustop=mons+'/'+days+'/'+years;
 
     var secs=""+clock.getSeconds();