I have the following Javascript line of code:
var showTime = new Date( 'Oct 15, 2017 19:45:00' ).getTime(); // October 15, 2017 at 7:45 p.m. ET or 4:45 p.m. PT
I am presently in the ET time zone (GMT-5 or Americas/New York). So I set the showTime
variable to ET. However, I want the showTime
var to actually be reflective of a Pacific Coast time which is 3 hours earlier -- in this case 4:45 p.m. Pac Time. And I want the time to be fixed and recognized globally and to not be offset according to local time zones.
Does the showTime
variable get treated differently in all the various time zones around the world? If it gets treated according to the local machine's time zone, how do you lock the time to 10/15/17, 7:45 p.m. ET universally?
Thanks.