[LON-CAPA-cvs] cvs: rat /client parameter.html

www lon-capa-cvs@mail.lon-capa.org
Wed, 06 Dec 2006 21:09:35 -0000


www		Wed Dec  6 16:09:35 2006 EDT

  Modified files:              
    /rat/client	parameter.html 
  Log:
  Bug #4584: rounding error by one second if milliseconds>500
  
  
Index: rat/client/parameter.html
diff -u rat/client/parameter.html:1.40 rat/client/parameter.html:1.41
--- rat/client/parameter.html:1.40	Thu Jun 29 23:12:21 2006
+++ rat/client/parameter.html	Wed Dec  6 16:09:35 2006
@@ -3,7 +3,7 @@
 The LearningOnline Network with CAPA
 Parameter Input Window
 //
-// $Id: parameter.html,v 1.40 2006/06/30 03:12:21 albertel Exp $
+// $Id: parameter.html,v 1.41 2006/12/06 21:09:35 www Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -686,7 +686,7 @@
 
 function assemble() {
     if ((ptype=='date') && (pscat!='interval')) {
-        svalue=Math.round(cdate.getTime()/1000);
+        svalue=Math.floor(cdate.getTime()/1000);
     }
     if (ptype=='tolerance') {
        if (pscat=='relative_sym') {