3 ms·
It's not geolocation - just a javascript function to ask the browser what the UTC offset of your local time is. See https://stackoverflow.com/questions/1091372/
by kzrdude 6y ago
It's not geolocation - just a javascript function to ask the browser what the UTC offset of your local time is. See https://stackoverflow.com/questions/1091372/getting-the-clients-timezone-offset-in-javascript https://stackoverflow.com/questions/1091372/getting-the-clie...
- shakna 6y agoWhich JavaScript function? The two main ones return two differing results for my browser. Intl.DateTimeFormat().resolvedOptions().timeZone > "Australia/Melbourne" Which is UTC +11. new Date().getTimezoneOffset() > -710 Which is roughly UTC +11.8. If you're going to shoebox me into a particular timezone - tell me what it is, and let me change it.