5 ms·
If you figure out how to do that without it being an account setting option, you let me know.
by aero142 14y ago
If you figure out how to do that without it being an account setting option, you let me know.
- TillE 14y agoI'm not a web developer, but can't you do that with Javascript? http://www.w3schools.com/jsref/jsref_gettimezoneoffset.asp http://www.w3schools.com/jsref/jsref_gettimezoneoffset.asp http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/ http://www.onlineaspect.com/2007/06/08/auto-detect-a-time-zo...
- jeltz 14y agoNeither of those two solutions are correct. They only work in a some cases. You need a more advanced detection algorithm for this. Preferably one based on the Olson database, since time zones have changed over the years and you want to be able to display past dates correctly. This solution linked from your second link looks more correct. https://bitbucket.org/pellepim/jstimezonedetect/src/e265c8eddec7/detect_timezone.js https://bitbucket.org/pellepim/jstimezonedetect/src/e265c8ed... But still I am not sure if this is the right way to do it.