I was programming a program in Python, where I need to output date as per user's locale:
- Get a list of timezones in a country specified as per user input (did that using pytz)
- Get the locale of the user (which I am unable to figure out how to do)
Is there a way to get locale from county/timezone or some other method needs to be followed?
Or do I need to get the locale input from user itself?
EDIT
The program is to be a web-app. The user can provide me his country. But does he have to explicitly provide me the locale also or can I get it from his timezone/country?