fix the timedata