Fix time calculation by setting the seconds to 0