joue-quroi / spoof-timezone

A privacy related add-on to spoof the timezone that is returned by your browser
http://add0n.com/spoof-timezone.html
Mozilla Public License 2.0
66 stars 14 forks source link

Doesn't override timezone abbreviation #15

Open JourdanClark opened 5 years ago

JourdanClark commented 5 years ago

I'm in MDT.

With the plugin disabled:

console.log(new Date('2017-06-29T13:31:17.736-06:00').toLocaleTimeString('en-us', { timeZoneName: 'short' }));
// 1:31:17 PM MDT

With the plugin enabled and set to New York (EDT):

console.log(new Date('2017-06-29T13:31:17.736-06:00').toLocaleTimeString('en-us', { timeZoneName: 'short' }));
// 3:31:17 PM MDT