Fixed problem with hour being to compared to an integer as a string.