How to change my browser timezone to ip timezone using moment.js? [duplicate]

chrome.runtime.onStartup.addListener(
  function(){
    moment.tz.setDefault("America/New_York");
  }
)

I am developing a privacy and proxy extension that changes the IP of the browser for a certain interval. Here there is a mismatch in browser timezone and IP server timezone.
I’m trying to change the browser timezone using the above code but it’s of no use.
Please guide to set browser timezone as IP server timezone.

Source: Ask Javascript Questions

LEAVE A COMMENT