Revision 53618
Added by Konstantina Galouni over 5 years ago
NotificationHandler.java | ||
---|---|---|
54 | 54 |
Date dateTodayAtTargetHour = calendar.getTime(); |
55 | 55 |
|
56 | 56 |
if(dateNow.after(dateTodayAtTargetHour)) { |
57 |
calendar.add(Calendar.SECOND,1); |
|
57 |
//calendar.add(Calendar.SECOND,1);
|
|
58 | 58 |
notification.setDate(calendar.getTime()); |
59 | 59 |
} else { |
60 | 60 |
calendar.add(Calendar.HOUR_OF_DAY, -Integer.parseInt(defaultFrequencyInHours)); |
61 |
calendar.add(Calendar.SECOND, 1); |
|
61 |
//calendar.add(Calendar.SECOND, 1);
|
|
62 | 62 |
notification.setDate(calendar.getTime()); |
63 | 63 |
} |
64 | 64 |
|
Also available in: Unified diff
NotificationHandler.java & EmailSender.java: bug fix in calculating seconds (store 12:00 and add 1 sec to last_interaction_date when sending email).