replace hour by hour_of_day when set hour