Know bugs fixed.
[lichviet] / qml / LichViet / CacNgayLeTrongNam.js
index 0af4c81..fff991a 100644 (file)
@@ -115,6 +115,10 @@ function get(obj) {
 }
 
 function is_holiday(day, month, lunar_day, lunar_month){
+
+    if (day === 0 || month === 0)
+        return false;
+
     for(var i=0;i<DuongLich.length;i++)
         if (DuongLich[i][0] == day && DuongLich[i][1] ==month)
             return true;