'str' object has no attribute 'tzinfo'
groups.google.com › g › django-usersJan 03, 2018 · It looks like you're trying to localize a string, which is not a datetime object and, thus, doesn't have a tzinfo property. You'll have to convert your string to a datetime before trying to localize it. ... \AppData\Local\Programs\Python\Python36\lib\site-packages\pytz\__init__.py in localize.
Python - datetime.tzinfo() - GeeksforGeeks
www.geeksforgeeks.org › python-datetime-tzinfoFeb 27, 2020 · Python – datetime.tzinfo () Last Updated : 27 Feb, 2020. The DateTime class provides various functions to manipulate the date and time intervals. The DateTime object which you use in datetime.now () is actually the object of the DateTime class. These objects help us use the functions on dates and times. Note: For more information, refer to ...