fix issue with hour and day