* know bugs fixed !
[lichviet] / qml / LichViet / main.js
index fce97ab..ba39517 100644 (file)
@@ -45,6 +45,7 @@ function day_reset(){
 }
 
 function calDays(){
+    console.log(curMonth)
     if (curMonth == 4 || curMonth == 6 || curMonth == 9 || curMonth == 11)
         return 30;
     else
@@ -69,6 +70,7 @@ function calDaysX(month, year){
             else
                 return 28;
         }
+    else
     return 31;
 }