I'm coding a simple one-page web app/calculator. It has a switch between metric and imperial units.
What I'd like to do, however, is pre-select the (probably) correct option for the user to improve the UX.
I was wondering how would I determine what units the user uses. I can determine their timezone, but I couldn't find any timezone to units conversion array.
How would one go about solving this?