handle server-client time difference