Fixed call date and time check issue

This commit is contained in:
rajesh
2025-04-01 11:42:19 +05:30
parent e46e595b94
commit ed62ed2791
3 changed files with 29 additions and 16 deletions

View File

@@ -959,8 +959,8 @@ public class CallDao {
Status.NOT_FOUND,
Translator.toLocale(GepafinConstant.CALL_NOT_PUBLISHED));
}
LocalDate currentDate = LocalDate.now();
LocalTime currentTime = LocalTime.now();
LocalDate currentDate = DateTimeUtil.LocalDateServerToEurope(LocalDate.now());
LocalTime currentTime = DateTimeUtil.LocalTimeServerToEurope(LocalTime.now());
if (currentDate.isBefore(callEntity.getStartDate().toLocalDate()) ||
(currentDate.isEqual(callEntity.getStartDate().toLocalDate()) && currentTime.isBefore(callEntity.getStartTime()))) {