4 ms·
Well, I'm not sure if JavaScript's date constructor has issues with accuracy, but I'm pretty sure you can get the timezone offset in minutes using the following
by thomasfoster96 12y ago
Well, I'm not sure if JavaScript's date constructor has issues with accuracy, but I'm pretty sure you can get the timezone offset in minutes using the following:
(new Date()).getTimezoneOffset()
I'd assume it's returning the system time zone offset, and for me it's correct.