convert time from server to the client