Message
foo
must be between an integer 0 and 23
Explanation
hour
elements must be an integer between 0 and 23.
Solution
Remove any hour
elements that are out of range.
Not clear? Disagree?
You might be able to find help in one of these fine resources.