akoumjian / datefinder

Find dates inside text using Python and get back datetime objects
http://datefinder.readthedocs.org/en/latest/
MIT License
635 stars 167 forks source link

UnknownTimezoneWarning warning #191

Open reagle opened 1 year ago

reagle commented 1 year ago

The following command datefinder.find_dates(self.text) has started causing warnings to show when using this library:

/Users/reagle/.pyenv/versions/3.11.3/lib/python3.11/site-packages/dateutil/parser/_parser.py:1207: UnknownTimezoneWarning: tzname CET 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.
  warnings.warn("tzname {tzname} identified but not understood.  "
reagle commented 1 year ago

This occurred when looking for dates on this page: https://gto76.github.io/python-cheatsheet/