In Javascript, I have a timestamp which I'm handling like so:
var origUnixTimestamp = (date * 1000);
Along with this timestamp I have a UTC offset (-5, although this is variable). I'm looking to convert origUnixTimestamp to the users UTC offset, using Date's getTimezoneOffset() method.
I'm just wondering how I take into account the original timestamps UTC offset (-5, for example) and convert it to the users current UTC offset. I imagine this is fairly simple, but it's warping my brain at the moment.