Fixing weird rails bug with range of time values.