Ensuring same value of current time on both sides of the API