For this to happen, you need to apply the time zone offset to time, and then remove the offset from the value (check this, I guess from memory):
var now = new Date(), offset = -(now.getTimezoneOffset() * 60 * 1000),
Now an offset from your own:
var now = new Date(), offset = now.getTimezoneOffset() * 60 * 1000, yourUnixStamp = userUnixStamp - offset;
source share