4 Replies Latest reply: Dec 27, 2012 5:41 AM by gimbal2 RSS

    problem in execution of thread

    980221
      // getBookingUpdateStatus is used for the program is executed on current Date or not, if yes then else part will be execited
      if (bk_update.getBookingUpdateStatus()) {
      } else {
      date.add(Calendar.DAY_OF_MONTH, 1);
      System.out.println("date or calender"+date.getTime());
      }
      date.set(Calendar.HOUR, 0);
      date.set(Calendar.MINUTE, 0);
      date.set(Calendar.SECOND, 0);
      date.set(Calendar.MILLISECOND, 0);
      System.out.println("date or calender"+date.getTime());
      timer.schedule(bk_update, date.getTime(), 1000 * 60 * 60 * 24);
      }
      the problem is that, i have set the timer for execute in midnight at 12 , but it execute at mid day at 12 i am not able to understand, actually what is the problem.