I have a locale string like en-GB (got through navigator.language in javascript ) and want to use this to calculate the locale's time zone in the Java.
What is the recommended way to do this. I understand it would not always be accurate to calculate the timezone from locale. But even a guesstimate approach would be fine.
I checked this SO question but they don't recommend any method in Java which would use only the locale string and arrive at approximate timezone. Any library or hacks to get around this ? Because local denotes a particular region and a particular region will always have the same timezone.