solving setHours problem