OSDN Git Service

fix Oct become 010 bug.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Wed, 30 Sep 2009 15:40:25 +0000 (15:40 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Wed, 30 Sep 2009 15:40:25 +0000 (15:40 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@163 4e526526-5e11-4fc0-8910-f8fd03428081

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)+"-";