OSDN Git Service

fix Oct become 010 bug.
[rec10/rec10-git.git] / Rec10WEB / trunk / src / rswi.htm
index 0968ecf..5f8df25 100644 (file)
                 var nowtxt="";
                 //window.alert("setbtime");
                 nowtxt=String(date.getFullYear())+"-";
-                if (date.getMonth()<10){
+                if (date.getMonth()+1<10){
                     nowtxt=nowtxt+"0";
                 }
                 nowtxt=nowtxt+String(date.getMonth()+1)+"-";