substanced
substanced copied to clipboard
Timezone from JavaScript?
Currently we use an attribute on the user object to obtain the user's timezone. Apparently you can also get the timezone of the user's browser via JS. I wonder if it wouldn't be better to use the browser timezone than an attribute of the user (or some combination of the two, with one as a fallback for the other).
Maybe send the timezone when the login form is submitted, and put the result in the session, then add a value to the dropdown list of timezones which means "from the browser"?