Replaced the usage of Calendar with LocalTime and LocalDateTime