Error : UnknownTimezoneWarning: tzname IST identified but not understood. Pass `tzinfos` argument in order to correctly return a timezone-aware datetime. In a future version, this will raise an exception.
category=UnknownTimezoneWarning)
I'm using datefinder for getting the date out of a string.
This is a sample code:
import datefinder
a = 'Last Updated :16th July 2020 18:00 IST'
matches = list(datefinder.find_dates(a, source = True ))
print (matches)
Output :
UnknownTimezoneWarning: tzname IST identified but not understood. Pass `tzinfos` argument in order to correctly return a timezone-aware datetime. In a future version, this will raise an exception.
category=UnknownTimezoneWarning)
[(datetime.datetime(2020, 7, 16, 18, 0), '16th July 2020 18:00 IST')]
How can I eliminate the above error? (It works fine while using UTC in the string 'a' in place of IST(Indian Standard Time))