title: Calculate the client-server UTC offset using EPOC value javascript
body: <p>We are trying to calculate the client-server time offset by using EPOC value sent from backend API, when doing that I am running into an issue in local browser/client side.</p>
  <p>when i get EPOC from backend API I.e. serverEpocValue = 1653107370620 and trying to compare it with the local epoc value the difference is not 6 hours as I expected, it's around few milliseconds difference, why is epoc value close to local time instead of the server time?</p>
  <pre><code>const serverdate = new Date(1653107370620)
  </code></pre>
  <p>serverDate =
  Sat May 21 2022 09:59:30 GMT+0530 (locale browser date and time)</p>
  <p>How do we get the server UTC time using epoc to calculate the offset in the client side?</p>