How to get time zone by passing city and country?
问题 In my django project I have a small hotel database which has fields city and country . Can I get the timezone for that place by passing the city and country as parameters in someway. The reason I want to do this is because I have some commands that work based on the difference in check-in time of hotels and the time at that hote now . Since datetime.now() gives naive datetime I cannot use it to compare with the hotel time. How do I look forward to the solution. Thanks :) 回答1: To resolve a