Fixes regression to `AddFunctionTest` due to LocalDate to LocalDateTime changes.