solve the problem of time difference