I am using this function to convert UTC timestamp to Date according to the current user timezone

```js
let timeConversion = (new Date().getTimezoneOffset() * -1 / 60) * 60 * 60;

function formatTime(time) {
  let d = new Date(((time + timeConversion) * 1000));
  return (d.getUTCDate() < 10 ? '0' + d.getUTCDate() : d.getUTCDate()) + '/' +
    (d.getUTCMonth() + 1 < 10 ? '0' + (d.getUTCMonth() + 1) : (d.getUTCMonth() + 1)) + '/' +
    d.getUTCFullYear().toString().substr(2, 4) + ' ' +
    (d.getUTCHours() < 10 ? '0' + d.getUTCHours() : d.getUTCHours()) + ':' +
    (d.getUTCMinutes() < 10 ? '0' + d.getUTCMinutes() : d.getUTCMinutes());
}

let allDates = document.getElementsByClassName("candidatedate");
Array.prototype.forEach.call(allDates, function(el) {
  el.innerHTML = formatTime(parseInt(el.innerHTML));
  el.className = "candidatedate";
});
```

```html
<span class="candidatedate">1604263179</span><span class="candidatedate">1604263177</span><span class="candidatedate">1604263176</span>
```

The code works perfectly on every platform except for IOS when I try to see the page it shows NAN NAN NAN NAN and the issue is that i can't debug the code on ios safari(I don't have usb cable for my IPHONE). Can someone help me with that ? Thanks