fix for boundary cases in hour drop down