In Javascript, I have a timestamp that I process like this:
var origUnixTimestamp = (date * 1000);
Along with this timestamp, I have a UTC offset (-5, although this is a variable). I want to convert origUnixTimestamp to UTC offset of users using Date getTimezoneOffset () method.
I'm just wondering how I take into account the original UTC time offset (-5, for example) and convert it to the user's current UTC offset. I suppose it's pretty simple, but right now he's changing the brain.
source
share