isInSchedule(new GlideDateTime()) always returns falseDescriptionA script uses 'schedule.isInSchedule(new GlideDateTime())' to determine if the current date/time is within a schedule. This is not working and always returns false, even if the date/time is in the schedule without any exceptions.ResolutionSchedule in this context is the schedule '8-5 weekdays excluding holidays', the system determines that the current timestamp (new GlideDateTime()) is not in the schedule. Check if the schedule contains any child records like bank holidays and if disabling these corrects the problem. If that's the case check if the schedule contains entries that are in conflict. For example a specific entry and a second record which repeats (including the same date). If there's a conflict the function will return false.